diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-03-01 22:56:08 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-03-01 22:59:35 +0100 |
commit | 8c7b13db7011c8be986e9e525ca392bb13375432 (patch) | |
tree | 07b7c46a4365518f724b1c285f82a9c8579a4fec /lib/search | |
parent | 3d3190309f85a3b66890763f9605a6919f52d5f4 (diff) | |
download | nextcloud-server-8c7b13db7011c8be986e9e525ca392bb13375432.tar.gz nextcloud-server-8c7b13db7011c8be986e9e525ca392bb13375432.zip |
Files: Fix wrong attribute name in OC_Search_Provider_File
Diffstat (limited to 'lib/search')
-rw-r--r-- | lib/search/provider/file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php index 34803c75aeb..a37af495599 100644 --- a/lib/search/provider/file.php +++ b/lib/search/provider/file.php @@ -6,10 +6,10 @@ class OC_Search_Provider_File extends OC_Search_Provider{ $results=array(); foreach($files as $fileData){ $file=$fileData['path']; - if($fileData['mime']=='httpd/unix-directory'){ + $mime=$fileData['mimetype']; + if($mime=='httpd/unix-directory'){ $results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'index.php' ).'?dir='.$file,'Files'); }else{ - $mime=$fileData['mime']; $mimeBase=$fileData['mimepart']; switch($mimeBase){ case 'audio': |