mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
use db from phpgw_setup if the phpgw one is not availible
This commit is contained in:
parent
519e874afb
commit
3360c838f6
@ -62,7 +62,7 @@
|
||||
*/
|
||||
function preferences($account_id = '')
|
||||
{
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->db = is_object($GLOBALS['phpgw']->db) ? $GLOBALS['phpgw']->db : $GLOBALS['phpgw_setup']->db;
|
||||
$this->account_id = get_account_id($account_id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user