summaryrefslogtreecommitdiff
path: root/slideshow.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2006-02-23 14:52:03 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2006-02-23 14:52:03 +0000
commit330c7a4f517d74bebeca15fd3531adf50a07fe45 (patch)
tree039a565d599d22efeaabe46594fd569b25d7e517 /slideshow.php
parent1a2587936e8d2989da7b4c059ac66866b6649139 (diff)
downloadwiki-330c7a4f517d74bebeca15fd3531adf50a07fe45.tar.gz
wiki-330c7a4f517d74bebeca15fd3531adf50a07fe45.tar.bz2
wiki-330c7a4f517d74bebeca15fd3531adf50a07fe45.zip
check for empty session var
Diffstat (limited to 'slideshow.php')
-rwxr-xr-xslideshow.php8
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"]);
}