move $l to top
This commit is contained in:
commit
f19787f84c
|
@ -14,6 +14,7 @@ if (!isset($_FILES['files'])) {
|
|||
OCP\JSON::error(array('data' => array( 'message' => $l->t( 'No file was uploaded. Unknown error' ))));
|
||||
exit();
|
||||
}
|
||||
|
||||
foreach ($_FILES['files']['error'] as $error) {
|
||||
if ($error != 0) {
|
||||
$errors = array(
|
||||
|
|
Loading…
Reference in New Issue