dont try to use something that isn't there

remotes/origin/stable4
Robin Appelman 13 years ago
parent c46f701771
commit f1c5dce75c
  1. 6
      files/ajax/scan.php
  2. 4
      lib/filecache.php

@ -22,6 +22,10 @@ if($force or !OC_FileCache::inCache('')){
exit;
}
}else{
$eventSource->send('success',false);
if(isset($eventSource)){
$eventSource->send('success',false);
}else{
exit;
}
}
$eventSource->close();

@ -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'];
}
}

Loading…
Cancel
Save