cleanup array value assignment

This commit is contained in:
Jörn Friedrich Dreyer 2013-10-23 11:01:05 +02:00
parent c478a792fb
commit a9735c8a6f
1 changed files with 4 additions and 8 deletions

View File

@ -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();
}