diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php index 3ef75889effcc22bf3377fd0f4ec6b9726231eac..be35cbce4dbf828154ddef9f964a34738b97ece7 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;