mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14321] Clean up arcihve controller logic
PHPBB3-14321
This commit is contained in:
parent
b432f33b49
commit
debd1bb9d6
1 changed files with 3 additions and 3 deletions
|
@ -46,9 +46,9 @@ class archive_download
|
||||||
*/
|
*/
|
||||||
public function conflict_archive()
|
public function conflict_archive()
|
||||||
{
|
{
|
||||||
$filename = $this->installer_config->get('update_file_conflict_archive', false);
|
$filename = $this->installer_config->get('update_file_conflict_archive', '');
|
||||||
|
|
||||||
if (!$filename)
|
if (empty($filename))
|
||||||
{
|
{
|
||||||
throw new http_exception(404, 'URL_NOT_FOUND');
|
throw new http_exception(404, 'URL_NOT_FOUND');
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ class archive_download
|
||||||
{
|
{
|
||||||
$filename = $this->installer_config->get('update_file_archive', '');
|
$filename = $this->installer_config->get('update_file_archive', '');
|
||||||
|
|
||||||
if (!$filename)
|
if (empty($filename))
|
||||||
{
|
{
|
||||||
throw new http_exception(404, 'URL_NOT_FOUND');
|
throw new http_exception(404, 'URL_NOT_FOUND');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue