Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 0ac0fba

Browse files
author
Jamie Snape
committed
Fix warning on querying module.ini files for certain filesystem types
1 parent 844a7c6 commit 0ac0fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/controllers/components/UtilityComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function _initModulesConfig($dir)
131131
$modules = array();
132132
while(false !== ($file = readdir($handle)))
133133
{
134-
if(file_exists($dir.$file.'/configs/module.ini'))
134+
if(is_dir($dir.$file) && file_exists($dir.$file.'/configs/module.ini'))
135135
{
136136
$config = new Zend_Config_Ini($dir.$file.'/configs/module.ini', 'global', true);
137137
$config->db = array();

0 commit comments

Comments
 (0)