summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-06 23:36:31 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-06 23:36:31 +0100
commita0d6f0e127ec0994f42f330ebf2b4155d01a7e39 (patch)
treec451924934a48f23408980ce0e7f89173695a825 /apps
parent19e604c104e90cdd167efbb416513147ac28c00d (diff)
downloadnextcloud-server-a0d6f0e127ec0994f42f330ebf2b4155d01a7e39.tar.gz
nextcloud-server-a0d6f0e127ec0994f42f330ebf2b4155d01a7e39.zip
fixing undefined $eventSource
Diffstat (limited to 'apps')
-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();