From a956de78b9681f55cfc81785306031aa6e3ac9c1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Apr 2003 14:55:03 +0000 Subject: - Fixed some PHP "notices". --- includes/module.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/module.inc b/includes/module.inc index a8214e49c..d126944a9 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -66,7 +66,7 @@ function module_list($refresh = 0) { // return 1 if module $name exists, 0 otherwise: function module_exist($name) { $list = module_list(); - return ($list[$name]) ? 1 : 0; + return isset($list[$name]) ? 1 : 0; } // return 1 if module $name implements hook $hook, 0 otherwise: -- cgit v1.2.3