diff --git a/setup/index.php b/setup/index.php index 9ef5df66c5..5ed917d944 100644 --- a/setup/index.php +++ b/setup/index.php @@ -36,9 +36,14 @@ }else{ /* authentication settled. Moving to the database portion. */ loaddb(); $db->Halt_On_Error = "no"; - - $db->query("show tables"); - if ($db->num_rows()){ + +// Skeeter +// This is a patch sent in by mdean +// Disable both of these lines and replaced with the 2 llines following +// $db->query("show tables"); +// if ($db->num_rows()){ + $tables = $db->table_names(); + if (is_array($tables) && count($tables) > 0) { /* tables exists. checking for post beta version */ $db->free(); $db->query("select app_version from applications where app_name='admin'"); @@ -93,4 +98,4 @@ show_header($header_msg); show_steps($stage); echo ""; -?> \ No newline at end of file +?>