summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:14 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:49 +0100
commitc20319d37701efb9d32c38dd71880739ca75b33f (patch)
tree1f2f523650e24ea0d1cefd02f653cb85eee57c37 /apps/media
parentd9c7e4c333f858efaaee35d26ea12733d29bd694 (diff)
downloadnextcloud-server-c20319d37701efb9d32c38dd71880739ca75b33f.tar.gz
nextcloud-server-c20319d37701efb9d32c38dd71880739ca75b33f.zip
fix incorrect information in the filecache when using encryption
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/lib_media.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/media/lib_media.php b/apps/media/lib_media.php
index 1bcd0f08c80..a2109c151aa 100644
--- a/apps/media/lib_media.php
+++ b/apps/media/lib_media.php
@@ -56,6 +56,7 @@ class OC_MEDIA{
*/
public static function updateFile($params){
$path=$params['path'];
+ if(!$path) return;
require_once 'lib_scanner.php';
require_once 'lib_collection.php';
//fix a bug where there were multiply '/' in front of the path, it should only be one