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