also check api version for hooks table in deregister_hooks()

This commit is contained in:
Miles Lott 2002-02-20 05:19:35 +00:00
parent 4b878ddca9
commit 8b54414c64

View File

@ -556,6 +556,12 @@
*/
function deregister_hooks($appname)
{
if ($this->alessthanb($setup_info['phpgwapi']['currentver'],'0.9.8pre5'))
{
/* No phpgw_hooks table yet. */
return False;
}
if(!$appname)
{
return False;