From 6f48cb5363ca547fd4992c06516725ea87e281c9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 5 May 2003 19:11:47 +0000 Subject: [PATCH] gnu-patch #1244 --- phpgwapi/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 02b101f591..edf3ae7e9b 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -180,7 +180,7 @@ @$GLOBALS['phpgw']->db->query("SELECT COUNT(config_name) FROM phpgw_config"); if(!@$GLOBALS['phpgw']->db->next_record()) { - $setup_dir = @ereg_replace($PHP_SELF,'index.php','setup/'); + $setup_dir = @ereg_replace($_SERVER['PHP_SELF'],'index.php','setup/'); echo '
Fatal Error: It appears that you have not created the database tables for ' .'phpGroupWare. Click here to run setup.
'; exit;