2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php. Fixed. $Braath...
[fa-stable.git] / includes / hooks.inc
index 501d4a0f7eb1ca441a103b2d4efc85773e75899d..393fc8720a96a1d45116931554b76576c25304c4 100644 (file)
@@ -235,11 +235,13 @@ function install_hooks()
                unset($code, $hook_class);
        }
        // install hooks provided by active extensions
-       foreach($installed_extensions as $ext) {
-               $hook_class = 'hooks_'.$ext['package'];
-               if ($ext['active'] && class_exists($hook_class)) {
-                       $Hooks[$ext['package']] = new $hook_class;
-               }
+       if (isset($installed_extensions) && !empty($installed_extensions)) {
+               foreach($installed_extensions as $ext) {
+                       $hook_class = 'hooks_'.$ext['package'];
+                       if ($ext['active'] && class_exists($hook_class)) {
+                               $Hooks[$ext['package']] = new $hook_class;
+                       }
+               }       
        }
 }
 /*