Here's the situation. In my item.php I use the following to call up a module in the body:
<h2>Current Courses</h2>
<?php $module = JModuleHelper::getModules('faculty-courses');
echo JModuleHelper::renderModule($module[0]); ?>
However, there are times where there the data within that module is actually blank, and if that's the case I'd like to use an "if" statement to hide the <h2> heading just before that module.
Any help would be much appreciated.
<h2>Current Courses</h2>
<?php $module = JModuleHelper::getModules('faculty-courses');
echo JModuleHelper::renderModule($module[0]); ?>
However, there are times where there the data within that module is actually blank, and if that's the case I'd like to use an "if" statement to hide the <h2> heading just before that module.
Any help would be much appreciated.