diff --git a/libraries/cms/module/helper.php b/libraries/cms/module/helper.php index 30f270f8b38c3..a9b310f45816b 100644 --- a/libraries/cms/module/helper.php +++ b/libraries/cms/module/helper.php @@ -143,7 +143,7 @@ public static function renderModule($module, $attribs = array()) // Check that $module is a valid module object if (!is_object($module) || !isset($module->module) || !isset($module->params)) { - if (defined('JDEBUG') && JDEBUG) + if (defined('JDEBUG')) { JLog::addLogger(array('text_file' => 'jmodulehelper.log.php'), JLog::ALL, array('modulehelper')); JLog::add('JModuleHelper::renderModule($module) expects a module object', JLog::DEBUG, 'modulehelper');