Unreachable code
getting unreachable code on line 4854, how do i fix that ?
PHP Code:
PHP Code:
And Im having this problem in this line as well: PHP Code:
PHP Code:
|
Re: Unreachable code
Don't return from every single branch, it's completely useless here.
if code return else code return return is the same thing as if code else code return |
Re: Unreachable code
Delete this
Code:
|
Re: Unreachable code
Quote:
PHP Code:
|
Re: Unreachable code
Code:
|
Re: Unreachable code
Quote:
Also, this particular code should be implemented with a switch() instead of multiple consecutive if statements. |
Re: Unreachable code
Quote:
Quote:
|
Re: Unreachable code
Quote:
Code:
switch( var ) |
Re: Unreachable code
Quote:
PHP Code:
|
Re: Unreachable code
That should work.
|
| All times are GMT -4. The time now is 13:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.