From abc91c7f3e549c06521c9cd9d541e0bf80a44e5a Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Tue, 9 Jan 2001 16:48:08 +0000 Subject: [PATCH] reverted the changes from seek3r, because the broke more then they did repair --- phpgwapi/inc/phpgw.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/phpgw.inc.php b/phpgwapi/inc/phpgw.inc.php index 010d35cba0..a42b7a31ab 100644 --- a/phpgwapi/inc/phpgw.inc.php +++ b/phpgwapi/inc/phpgw.inc.php @@ -216,9 +216,12 @@ if (! $kp3) $kp3 = $phpgw_info["user"]["kp3"]; - if (! $url) { // PHP won't allow you to set a var to a var - $url_root = split ("/", $phpgw_info["server"]["webserver_url"]); - $url = $url_root[0]."//".$url_root[2].$PHP_SELF; // or function for default values + // PHP won't allow you to set a var to a var + // or function for default values + if (! $url) { + #$url_root = split ("/", $phpgw_info["server"]["webserver_url"]); + #$url = $url_root[0]."//".$url_root[2].$PHP_SELF; + $url = $PHP_SELF; } if (isset($phpgw_info["server"]["usecookies"]) &&