Re: 1 last error to fix before the application is done!
| From: | Colin Guthrie | Date: | Tue, 14 Oct 2008 13:12:35 +0000 |
| Subject: | Re: 1 last error to fix before the application is done! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281867@lists.php.net to get a copy of this message | ||
Peter Ford wrote:
You can probably short-circuit some of that - for example if $_SESSION['userInfo']['loggedIn'] is only ever set to TRUE (and is not set otherwise) then you might find that if (isset($_SESSION['userInfo']['loggedin'])) {As I mentioned elsewhere on this thread, !empty(..) is a better way of doing this as it works in the case when the value is set to FALSE too. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]