diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 1e3322afc5..3a78d8c1f6 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -176,12 +176,12 @@ } $GLOBALS['phpgw']->db->Halt_On_Error = 'no'; - @$GLOBALS['phpgw']->db->query("select count(config_name) from phpgw_config"); - if (! @$GLOBALS['phpgw']->db->next_record()) + @$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($PHP_SELF,'index.php','setup/'); echo '