1
0
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:
Rubén Calvo
2017-10-31 17:35:25 +01:00
parent 6bd01d1506
commit f80c59cb05
8 changed files with 18 additions and 7 deletions

View File

@@ -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;
}