Skip to content

Commit

Permalink
Check for empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoerrmann committed Jan 18, 2011
1 parent 76d465c commit 2a87718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symphony/lib/toolkit/class.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public static function fetch() {
foreach($extensions as $extension) {
$folder = $extension->getPathname() . '/lang';
$directory = General::listStructure($folder);
if(is_array($directory['filelist'])) {
if(is_array($directory['filelist']) && !empty($directory['filelist'])) {
foreach($directory['filelist'] as $file) {
$temp = self::fetchLanguage($extension->getFilename(), $folder, $file, $enabled);

Expand Down

0 comments on commit 2a87718

Please sign in to comment.