33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-23 21:27:35 +00:00

SE1 was not showing ok message if every folder was containing index.html files

This commit is contained in:
Daniel Dimitrov 2012-06-28 09:39:00 +02:00
parent ab27c25ccb
commit 303257082f

View File

@ -24,7 +24,7 @@ class jedcheckerRulesHtmlindexes {
$indexes = array_replace($this->folders, $this->indexes);
echo '<span class="rule">'.JText::_('COM_JEDCHECKER_RULE_SE1') . '</span><br />';
if(count($indexes)) {
if(count($indexes) && in_array(false, $indexes)) {
foreach($indexes as $key => $index) {
if(!$index) {
echo $key . '<br />';