mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 19:33:54 +01:00
fixed broken install under PostgreSQL caused by PHP Fatal error: Call to a member function fetch() on a non-object
This commit is contained in:
parent
989c2be768
commit
d66d506e58
@ -466,8 +466,11 @@ class accounts_sql
|
|||||||
($table == $this->contacts_table ? " AND contact_tid != 'D'" : ''); // ignore deleted accounts contact-data
|
($table == $this->contacts_table ? " AND contact_tid != 'D'" : ''); // ignore deleted accounts contact-data
|
||||||
|
|
||||||
}
|
}
|
||||||
if (!($row = $this->db->select($table,$cols,$where,__LINE__,__FILE__)->fetch())) return false;
|
if (!($rs = $this->db->select($table,$cols,$where,__LINE__,__FILE__)) || !($row = $rs->fetch()))
|
||||||
|
{
|
||||||
|
error_log(__METHOD__."('$name', '$which', ".array2string($account_type).") db->select('$table', '$cols', ".array2string($where).") returned ".array2string($rs).' '.function_backtrace());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return ($row['account_type'] == 'g' ? -1 : 1) * $row['account_id'];
|
return ($row['account_type'] == 'g' ? -1 : 1) * $row['account_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user