let's the asyncservice class run under setup

This commit is contained in:
Ralf Becker 2004-10-15 22:56:00 +00:00
parent 04e778c065
commit 219d169207

View File

@ -45,7 +45,7 @@
*/
function asyncservice()
{
$this->db = $GLOBALS['phpgw']->db;
$this->db = is_object($GLOBALS['phpgw']->db) ? $GLOBALS['phpgw']->db : $GLOBALS['phpgw_setup']->db;
$this->db->set_app('phpgwapi');
$this->cronline = PHPGW_SERVER_ROOT . '/phpgwapi/cron/asyncservices.php '.$GLOBALS['phpgw_info']['user']['domain'];