From 0479a2873e516fc199c87004a299acce4c2dbf2e Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Fri, 25 May 2012 11:25:57 +0800 Subject: [PATCH] MDL-33324 Filepicker : removed redundant parantheses. --- repository/lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repository/lib.php b/repository/lib.php index d97b7521207..1bcfa7a7ad3 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -1775,9 +1775,9 @@ abstract class repository { $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))) { + } else if (is_object($listing) && isset($listing->path) && is_array($listing->path)) { $path = &$listing->path; } if (isset($path)) { @@ -1792,10 +1792,10 @@ abstract class repository { } // prepare $listing['list'] or $listing->list - if (is_array($listing) && isset($listing['list']) && is_array(($listing['list']))) { + if (is_array($listing) && isset($listing['list']) && is_array($listing['list'])) { $listing['list'] = array_values($listing['list']); // convert to array $files = &$listing['list']; - } else if (is_object($listing) && isset($listing->list) && is_array(($listing->list))) { + } else if (is_object($listing) && isset($listing->list) && is_array($listing->list)) { $listing->list = array_values($listing->list); // convert to array $files = &$listing->list; } else {