diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-01-31 16:33:16 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-01-31 16:33:36 +0100 |
commit | f1c5dce75c5f1bc2c9d7022a8b43577a3dec9629 (patch) | |
tree | 35dc7fc55c2ef4235c55e7d7578dfad06b0be126 /files | |
parent | c46f701771db9285e70a5b1d5a4b641046bf703c (diff) | |
download | nextcloud-server-f1c5dce75c5f1bc2c9d7022a8b43577a3dec9629.tar.gz nextcloud-server-f1c5dce75c5f1bc2c9d7022a8b43577a3dec9629.zip |
dont try to use something that isn't there
Diffstat (limited to 'files')
-rw-r--r-- | files/ajax/scan.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/files/ajax/scan.php b/files/ajax/scan.php index 37ce7ab71f0..f7e75d5f8ba 100644 --- a/files/ajax/scan.php +++ b/files/ajax/scan.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();
\ No newline at end of file |