summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/module.inc2
1 files changed, 1 insertions, 1 deletions
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: