diff --git a/phpgwapi/inc/class.setup.inc.php b/phpgwapi/inc/class.setup.inc.php index 6ca5f74986..e839d2a9ee 100644 --- a/phpgwapi/inc/class.setup.inc.php +++ b/phpgwapi/inc/class.setup.inc.php @@ -802,16 +802,16 @@ return False; } } - - - function get_hooks_table_name() - { - if($this->alessthanb($setup_info['phpgwapi']['currentver'],'0.9.8pre5') && ($setup_info['phpgwapi']['currentver'] != '')) + + function get_hooks_table_name() + { + if($this->alessthanb($GLOBALS['setup_info']['phpgwapi']['currentver'],'0.9.8pre5') && + $GLOBALS['setup_info']['phpgwapi']['currentver'] != '') { /* No phpgw_hooks table yet. */ return False; } - return 'phpgw_hooks'; - } + return 'phpgw_hooks'; + } } ?>