mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:30 +02: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 = '')
|
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);
|
$this->account_id = get_account_id($account_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user