From 0b6c77c072eb2c984f24024574722a345057643f Mon Sep 17 00:00:00 2001 From: michaeljoseph Date: Thu, 29 Jul 2004 10:15:33 +0000 Subject: [PATCH] Added some variable initialisation and instantiation checking (to remove spurious E_NOTICEs) --- control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control.php b/control.php index 09b86df..79cb82b 100644 --- a/control.php +++ b/control.php @@ -49,7 +49,7 @@ if (checkSessionAndRedirect(false)) { } // need to strip query string params from action before attempting to retrieve from sitemap - +$queryString = ""; // check for the presence of additional params if (strstr($_SERVER["QUERY_STRING"], "&")) { // strip and save the querystring @@ -62,7 +62,7 @@ if (strstr($_SERVER["QUERY_STRING"], "&")) { } // retrieve the page from the sitemap (checks whether this user has access to the requested page) -$page = $default->siteMap->getPage($action, $_SESSION["userID"]); +$page = $default->siteMap->getPage($action, isset($_SESSION["userID"]) ? $_SESSION["userID"] : ""); if (!$page) { // this user doesn't have permission to access the page -- libgit2 0.21.4