Skip to content
Snippets Groups Projects
Commit a9735c8a authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

cleanup array value assignment

parent c478a792
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment