From 554f5fa3f1c0f64e31aa3394f2d0cca4de17f339 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 May 2005 03:32:25 +0000 Subject: [PATCH] r126: If $location['path'] is empty in Admin::page_start() then set it to index.php --- includes/adminfunctions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/adminfunctions.php b/includes/adminfunctions.php index d0b1e07..510f257 100755 --- a/includes/adminfunctions.php +++ b/includes/adminfunctions.php @@ -77,6 +77,7 @@ EOD; $location = parse_url($_SERVER['SCRIPT_URL']); $location['path'] = preg_quote(end(explode('/', $location['path']))); + $location['path'] = ((!$location['path']) ? 'index.php' : $location['path']); echo "
\n"; echo "\n\t
"; -- 2.43.5