From 8b54414c64accd079d1cc96c28569a6943385834 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 20 Feb 2002 05:19:35 +0000 Subject: [PATCH] also check api version for hooks table in deregister_hooks() --- setup/inc/class.setup.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index 8a0f9314a5..6ed1addefb 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -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;