mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/15286] Fix tests after rebase
PHPBB3-15286
This commit is contained in:
@@ -203,6 +203,15 @@ class upload
|
||||
// Only then perform additional image checks.
|
||||
$this->file->move_file($this->storage, false, !$is_image);
|
||||
|
||||
if (count($this->file->error))
|
||||
{
|
||||
$this->file->remove($this->storage);
|
||||
$this->file_data['error'] = array_merge($this->file_data['error'], $this->file->error);
|
||||
$this->file_data['post_attach'] = false;
|
||||
|
||||
return $this->file_data;
|
||||
}
|
||||
|
||||
return $this->file_data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user