fix check for success

This commit is contained in:
Thomas Schmidt 2011-09-29 15:53:31 +02:00
parent 2086bc4be7
commit 387b94b740

View file

@ -20,7 +20,7 @@ foreach($files as $file) {
}
}
if(success) {
if($success) {
OC_JSON::success(array("data" => array( "dir" => $dir, "files" => $files )));
} else {
OC_JSON::error(array("data" => array( "message" => "Could not delete:\n" . $filesWithError )));