summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-01-15 07:45:51 -0800
committerBart Visscher <bartv@thisnet.nl>2013-01-15 07:45:51 -0800
commit0da06187f6b1006db67b5d34281fd51a56054d21 (patch)
tree571aaa6707e225d40e42454f18783b719c684b4a /apps/files
parentbb9cc227c2583adc6b51a1f6d75a9fc8333836b9 (diff)
parent42678096bb408f0955bb5c7f06e1e8b58088ea8b (diff)
downloadnextcloud-server-0da06187f6b1006db67b5d34281fd51a56054d21.tar.gz
nextcloud-server-0da06187f6b1006db67b5d34281fd51a56054d21.zip
Merge pull request #1187 from owncloud/fixing-unused-and-undefined-in-master
Fixing unused and undefined in master
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/scan.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php
index 5cd9572d7f9..a819578e309 100644
--- a/apps/files/ajax/scan.php
+++ b/apps/files/ajax/scan.php
@@ -6,13 +6,14 @@ $force=isset($_GET['force']) and $_GET['force']=='true';
$dir=isset($_GET['dir'])?$_GET['dir']:'';
$checkOnly=isset($_GET['checkonly']) and $_GET['checkonly']=='true';
+$eventSource=false;
if(!$checkOnly) {
$eventSource=new OC_EventSource();
}
session_write_close();
-//create the file cache if necesary
+//create the file cache if necessary
if($force or !OC_FileCache::inCache('')) {
if(!$checkOnly) {
OCP\DB::beginTransaction();