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

Commit

Permalink
Fix warning on querying module.ini files for certain filesystem types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Jul 14, 2014
1 parent 844a7c6 commit 0ac0fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/controllers/components/UtilityComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function _initModulesConfig($dir)
$modules = array();
while(false !== ($file = readdir($handle)))
{
if(file_exists($dir.$file.'/configs/module.ini'))
if(is_dir($dir.$file) && file_exists($dir.$file.'/configs/module.ini'))
{
$config = new Zend_Config_Ini($dir.$file.'/configs/module.ini', 'global', true);
$config->db = array();
Expand Down

0 comments on commit 0ac0fba

Please sign in to comment.