summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-31 16:33:16 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-31 16:33:36 +0100
commitf1c5dce75c5f1bc2c9d7022a8b43577a3dec9629 (patch)
tree35dc7fc55c2ef4235c55e7d7578dfad06b0be126 /lib/filecache.php
parentc46f701771db9285e70a5b1d5a4b641046bf703c (diff)
downloadnextcloud-server-f1c5dce75c5f1bc2c9d7022a8b43577a3dec9629.tar.gz
nextcloud-server-f1c5dce75c5f1bc2c9d7022a8b43577a3dec9629.zip
dont try to use something that isn't there
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index 689680624a4..b4cafe8b311 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -325,7 +325,9 @@ class OC_FileCache{
$mimetype=OC_Filesystem::getMimeType($file);
$stat['mimetype']=$mimetype;
self::put($file,$stat);
- $eventSource->send('scanned',$file);
+ if($eventSource){
+ $eventSource->send('scanned',$file);
+ }
$totalSize+=$stat['size'];
}
}