diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-10-23 11:01:05 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-10-23 11:01:05 +0200 |
commit | a9735c8a6ffeb84ab5ad4c7669174ca84af67c74 (patch) | |
tree | c0d9aa0a749426c252c7fa3d65e732d6aeefa900 /apps/files/ajax | |
parent | c478a792fb13bdb410d5e9467efc06cae9163858 (diff) | |
download | nextcloud-server-a9735c8a6ffeb84ab5ad4c7669174ca84af67c74.tar.gz nextcloud-server-a9735c8a6ffeb84ab5ad4c7669174ca84af67c74.zip |
cleanup array value assignment
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/newfile.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index f64a1bcc278..a58948bf68c 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -68,14 +68,10 @@ if(strpos($filename, '/') !== false) { $target = $dir.'/'.$filename; if (\OC\Files\Filesystem::file_exists($target)) { - $result = array( - 'success' => false, - 'data' => array( - 'message' => $l10n->t( - "The name %s is already used in the folder %s. Please choose a different name.", - array($filename, $dir)) - ) - ); + $result['data'] = array('message' => $l10n->t( + "The name %s is already used in the folder %s. Please choose a different name.", + array($filename, $dir)) + ); OCP\JSON::error($result); exit(); } |