Skip to content

Commit

Permalink
Merge pull request #485 from ionous/483
Browse files Browse the repository at this point in the history
fix for #483
  • Loading branch information
carrythebanner authored Apr 26, 2023
2 parents f11506c + 3bca962 commit dae3ea6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/www/manage_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ function upload_attached_file($event, $messages) {
$file_message = $uploader->validate('file', TRUE);
if ($file_message != null) {
$messages = array('file' => $file_message);
} else {
global $IMAGEDIR;
$file = $uploader->move($IMAGEDIR, 'file');
$event->setImage($file->getName());
}
global $IMAGEDIR;
$file = $uploader->move($IMAGEDIR, 'file');
$event->setImage($file->getName());
}
return $messages;
}
Expand Down

0 comments on commit dae3ea6

Please sign in to comment.