summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-03-09 16:28:26 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2012-03-09 16:28:26 +0100
commit84d6c539702db2d0f50ea238c6312f51422bf19a (patch)
tree96fd6628404bf9f5a095a479ff1f16ccdce5c772 /lib/filecache.php
parent2582fe1c8914ae4fd04bb40b29e15fbc6f308a78 (diff)
downloadnextcloud-server-84d6c539702db2d0f50ea238c6312f51422bf19a.tar.gz
nextcloud-server-84d6c539702db2d0f50ea238c6312f51422bf19a.zip
filecache search comparition fix
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php4
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);