more pgsql compatible

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

View File

@ -37,8 +37,13 @@
loaddb(); loaddb();
$db->Halt_On_Error = "no"; $db->Halt_On_Error = "no";
$db->query("show tables"); // Skeeter
if ($db->num_rows()){ // 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 */ /* tables exists. checking for post beta version */
$db->free(); $db->free();
$db->query("select app_version from applications where app_name='admin'"); $db->query("select app_version from applications where app_name='admin'");