more pgsql compatible

This commit is contained in:
skeeter 2000-12-02 03:07:35 +00:00
parent a214da7189
commit 636b37b3e9

View File

@ -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 "</body></html>";
?>
?>