summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Module.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML/Module.php')
-rw-r--r--lib/SimpleSAML/Module.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php
index 3ef7588..be35cbc 100644
--- a/lib/SimpleSAML/Module.php
+++ b/lib/SimpleSAML/Module.php
@@ -42,7 +42,9 @@ class SimpleSAML_Module {
return FALSE;
}
- assert('file_exists($moduleDir . "/default-disable") || file_exists($moduleDir . "/default-enable")');
+ if (assert_options(ASSERT_ACTIVE) && !file_exists($moduleDir . '/default-enable') && !file_exists($moduleDir . '/default-disable')) {
+ SimpleSAML_Logger::error("Missing default-enable or default-disable file for the module $module");
+ }
if(file_exists($moduleDir . '/enable')) {
return TRUE;