dont try to use something that isn't there
This commit is contained in:
parent
c46f701771
commit
f1c5dce75c
|
@ -22,6 +22,10 @@ if($force or !OC_FileCache::inCache('')){
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
if(isset($eventSource)){
|
||||||
$eventSource->send('success',false);
|
$eventSource->send('success',false);
|
||||||
|
}else{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$eventSource->close();
|
$eventSource->close();
|
|
@ -325,7 +325,9 @@ class OC_FileCache{
|
||||||
$mimetype=OC_Filesystem::getMimeType($file);
|
$mimetype=OC_Filesystem::getMimeType($file);
|
||||||
$stat['mimetype']=$mimetype;
|
$stat['mimetype']=$mimetype;
|
||||||
self::put($file,$stat);
|
self::put($file,$stat);
|
||||||
|
if($eventSource){
|
||||||
$eventSource->send('scanned',$file);
|
$eventSource->send('scanned',$file);
|
||||||
|
}
|
||||||
$totalSize+=$stat['size'];
|
$totalSize+=$stat['size'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue