diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php
index 5d6b5d94e5ce1681cb959af62f6c4c36ab2af5c2..d0b3030dbf8364cd36170fdad070d2345ab43d7d 100644
--- a/apps/files_trashbin/index.php
+++ b/apps/files_trashbin/index.php
@@ -16,6 +16,7 @@ OCP\Util::addScript('files', 'filelist');
 
 $dir = isset($_GET['dir']) ? stripslashes($_GET['dir']) : '';
 
+$result = array();
 if ($dir) {
 	$dirlisting = true;
 	$view = new \OC_FilesystemView('/'.\OCP\User::getUser().'/files_trashbin');