Commit 455a11838c95e92893fd8d9ffd77d72e0b547407
1 parent
3653f43e
Added some variable initialisation and instantiation checking (to remove spurious E_NOTICEs)
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2893 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
control.php
| @@ -49,7 +49,7 @@ if (checkSessionAndRedirect(false)) { | @@ -49,7 +49,7 @@ if (checkSessionAndRedirect(false)) { | ||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | // need to strip query string params from action before attempting to retrieve from sitemap | 51 | // need to strip query string params from action before attempting to retrieve from sitemap |
| 52 | - | 52 | +$queryString = ""; |
| 53 | // check for the presence of additional params | 53 | // check for the presence of additional params |
| 54 | if (strstr($_SERVER["QUERY_STRING"], "&")) { | 54 | if (strstr($_SERVER["QUERY_STRING"], "&")) { |
| 55 | // strip and save the querystring | 55 | // strip and save the querystring |
| @@ -62,7 +62,7 @@ if (strstr($_SERVER["QUERY_STRING"], "&")) { | @@ -62,7 +62,7 @@ if (strstr($_SERVER["QUERY_STRING"], "&")) { | ||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | // retrieve the page from the sitemap (checks whether this user has access to the requested page) | 64 | // retrieve the page from the sitemap (checks whether this user has access to the requested page) |
| 65 | -$page = $default->siteMap->getPage($action, $_SESSION["userID"]); | 65 | +$page = $default->siteMap->getPage($action, isset($_SESSION["userID"]) ? $_SESSION["userID"] : ""); |
| 66 | 66 | ||
| 67 | if (!$page) { | 67 | if (!$page) { |
| 68 | // this user doesn't have permission to access the page | 68 | // this user doesn't have permission to access the page |