Menu

#381 Exception incorrectly handled: break instead of exit?

closed-fixed
nobody
Other (69)
5
2010-03-01
2010-02-28
openfan
No

At line 68 of common.php there is a break statement that doesn't work here, because it is within an if statement, and not within a control structure. According to the PHP manual (http://www.php.net/manual/en/control-structures.break.php): "break ends execution of the current for, foreach, while, do-while or switch structure."

I guess this should be an exit statement, like in the other code blocks that handle exceptions?

NOCC 1.8.2

Discussion

  • Tim Gerundt

    Tim Gerundt - 2010-03-01

    Good catch!

    Committed to SVN (In Revision 2127)...

     
  • Tim Gerundt

    Tim Gerundt - 2010-03-01
    • status: open --> closed-fixed
     

Log in to post a comment.

Auth0 Logo