diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-02 22:15:43 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-02 22:15:43 +0100 |
commit | 3ea9432d43c8a53934ff01c861bde35d22235760 (patch) | |
tree | b250b7310794c9d35e9255193dcd29ea3595affa /apps | |
parent | 0405edc7984c01b5ef4d6cb4ff5154e8bd4dca11 (diff) | |
download | nextcloud-server-3ea9432d43c8a53934ff01c861bde35d22235760.tar.gz nextcloud-server-3ea9432d43c8a53934ff01c861bde35d22235760.zip |
fixing undefined variable $l
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/ajax/upload.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 0909a3f0776..8513736835f 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -13,9 +13,11 @@ if (!isset($_FILES['files'])) { OCP\JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' ))); exit(); } + +$l=OC_L10N::get('files'); + foreach ($_FILES['files']['error'] as $error) { if ($error != 0) { - $l=OC_L10N::get('files'); $errors = array( UPLOAD_ERR_OK=>$l->t('There is no error, the file uploaded with success'), UPLOAD_ERR_INI_SIZE=>$l->t('The uploaded file exceeds the upload_max_filesize directive in php.ini: ') |