diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index e1f14ade3a..c0fee5bb15 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -153,7 +153,7 @@ @$GLOBALS['phpgw']->db->query("select count(config_name) from phpgw_config"); if (! @$GLOBALS['phpgw']->db->next_record()) { - $setup_dir = ereg_replace($_SERVER['PHP_SELF'],'index.php','setup/'); + $setup_dir = str_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;