diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-03-09 16:28:26 +0100 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-03-09 16:28:26 +0100 |
commit | 84d6c539702db2d0f50ea238c6312f51422bf19a (patch) | |
tree | 96fd6628404bf9f5a095a479ff1f16ccdce5c772 /lib/filecache.php | |
parent | 2582fe1c8914ae4fd04bb40b29e15fbc6f308a78 (diff) | |
download | nextcloud-server-84d6c539702db2d0f50ea238c6312f51422bf19a.tar.gz nextcloud-server-84d6c539702db2d0f50ea238c6312f51422bf19a.zip |
filecache search comparition fix
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index be2a00a19a0..7cea878042d 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -534,10 +534,10 @@ class OC_FileCache{ * seccond mimetype part can be ommited * e.g. searchByMime('audio') */ - public static function searchByMime($part1,$part2='',$root=''){ + public static function searchByMime($part1,$part2=null,$root=null){ if(!$root){ $root=OC_Filesystem::getRoot(); - }elseif($root='/'){ + }elseif($root=='/'){ $root=''; } $rootLen=strlen($root); |