diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2006-02-23 14:52:03 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2006-02-23 14:52:03 +0000 |
| commit | 330c7a4f517d74bebeca15fd3531adf50a07fe45 (patch) | |
| tree | 039a565d599d22efeaabe46594fd569b25d7e517 /slideshow.php | |
| parent | 1a2587936e8d2989da7b4c059ac66866b6649139 (diff) | |
| download | wiki-330c7a4f517d74bebeca15fd3531adf50a07fe45.tar.gz wiki-330c7a4f517d74bebeca15fd3531adf50a07fe45.tar.bz2 wiki-330c7a4f517d74bebeca15fd3531adf50a07fe45.zip | |
check for empty session var
Diffstat (limited to 'slideshow.php')
| -rwxr-xr-x | slideshow.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slideshow.php b/slideshow.php index c08aae0..1b80042 100755 --- a/slideshow.php +++ b/slideshow.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/slideshow.php,v 1.9 2006/02/23 14:47:29 bitweaver Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/slideshow.php,v 1.10 2006/02/23 14:52:03 bitweaver Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: slideshow.php,v 1.9 2006/02/23 14:47:29 bitweaver Exp $ + * $Id: slideshow.php,v 1.10 2006/02/23 14:52:03 bitweaver Exp $ * @package wiki * @subpackage functions */ @@ -59,11 +59,11 @@ if( $gBitUser->isRegistered() ) { $userbreadCrumb = $anonpref; } -if (!isset($_SESSION["breadCrumb"])) { +if( empty( $_SESSION["breadCrumb"] ) ) { $_SESSION["breadCrumb"] = array(); } -if( !empty( $_SESSION["breadCrumb"] ) && !in_array($page, $_SESSION["breadCrumb"])) { +if( !in_array($page, $_SESSION["breadCrumb"])) { if (count($_SESSION["breadCrumb"]) > $userbreadCrumb) { array_shift ($_SESSION["breadCrumb"]); } |
