MDL-33324 Filepicker : fixed syntax.
authorAparup Banerjee <aparup@moodle.com>
Fri, 25 May 2012 03:44:04 +0000 (11:44 +0800)
committerAparup Banerjee <aparup@moodle.com>
Fri, 25 May 2012 03:44:04 +0000 (11:44 +0800)
repository/lib.php

index 1bcfa7a..3abca8d 100644 (file)
@@ -1775,7 +1775,7 @@ abstract class repository {
 
         $defaultfoldericon = $OUTPUT->pix_url(file_folder_icon(24))->out(false);
         // prepare $listing['path'] or $listing->path
 
         $defaultfoldericon = $OUTPUT->pix_url(file_folder_icon(24))->out(false);
         // prepare $listing['path'] or $listing->path
-        if (is_array($listing) && isset($listing['path']) && is_array((listing['path'])) {
+        if (is_array($listing) && isset($listing['path']) && is_array($listing['path'])) {
             $path = &$listing['path'];
         } else if (is_object($listing) && isset($listing->path) && is_array($listing->path)) {
             $path = &$listing->path;
             $path = &$listing['path'];
         } else if (is_object($listing) && isset($listing->path) && is_array($listing->path)) {
             $path = &$listing->path;