summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-30 13:01:53 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-30 13:01:53 +0100
commita6e5f4b85c0aea807f95347e68f88faf08dfbee1 (patch)
tree7f1a0a9e61a43db0b472eb933b1dc83e57f24056 /apps/files_trashbin/ajax
parent9639544ca0a2a149d742985bd72e9b4dc2f15347 (diff)
downloadnextcloud-server-a6e5f4b85c0aea807f95347e68f88faf08dfbee1.tar.gz
nextcloud-server-a6e5f4b85c0aea807f95347e68f88faf08dfbee1.zip
some minor improvements
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r--apps/files_trashbin/ajax/undelete.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php
index 178d85ccf38..a7bb5b9de2d 100644
--- a/apps/files_trashbin/ajax/undelete.php
+++ b/apps/files_trashbin/ajax/undelete.php
@@ -1,6 +1,6 @@
<?php
-if(!OC_User::isLoggedIn()) {
+if(!OCP\User::isLoggedIn()) {
exit;
}
@@ -9,6 +9,7 @@ $dirlisting = $_REQUEST['dirlisting'];
$list = explode(';', $files);
$error = array();
+$success = array();
$i = 0;
foreach ($list as $file) {