diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index c0fee5bb15..64c06941f2 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -24,9 +24,9 @@ /* $Id$ */ - /****************************************************************************\ - * If running in PHP3, then force admin to upgrade * - \****************************************************************************/ + /***************************************************************************\ + * If running in PHP3, then force admin to upgrade * + \***************************************************************************/ if (!function_exists('version_compare'))//version_compare() is only available in PHP4.1+ { @@ -150,18 +150,18 @@ } $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 = str_replace($_SERVER['PHP_SELF'],'index.php','setup/'); echo '