forked from extern/egroupware
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