diff --git a/admin/inc/class.soaccess_history.inc.php b/admin/inc/class.soaccess_history.inc.php index 3b2f45252d..eb57c9ad11 100644 --- a/admin/inc/class.soaccess_history.inc.php +++ b/admin/inc/class.soaccess_history.inc.php @@ -17,9 +17,7 @@ function soaccess_history() { - global $phpgw; - - $this->db = $phpgw->db; + $this->db = $GLOBALS['phpgw']->db; } function test_account_id($account_id) @@ -70,4 +68,4 @@ return $this->db->f(0); } - } \ No newline at end of file + }