mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
use db from phpgw_setup if the phpgw one is not availible
This commit is contained in:
parent
b3dfa3d386
commit
519e874afb
@ -35,7 +35,7 @@
|
||||
$appname = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
}
|
||||
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->db = is_object($GLOBALS['phpgw']->db) ? $GLOBALS['phpgw']->db : $GLOBALS['phpgw_setup']->db;
|
||||
$this->appname = $appname;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user