mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
more pgsql compatible
This commit is contained in:
parent
a214da7189
commit
636b37b3e9
@ -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>";
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user