Skip to content

Commit

Permalink
fix function return value
Browse files Browse the repository at this point in the history
  • Loading branch information
AppChecker committed Jan 31, 2016
1 parent 5007358 commit 7e07d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/AnnouncementManager.php
Expand Up @@ -1329,7 +1329,7 @@ public static function edit_announcement_attachment_file($id_attach, $file, $fil
$file_name = $file ['name'];

if (!filter_extension($new_file_name)) {
$return - 1;
$return = -1;
Display :: display_error_message(get_lang('UplUnableToSaveFileFilteredExtension'));
} else {
$new_file_name = uniqid('');
Expand Down

0 comments on commit 7e07d38

Please sign in to comment.