Merge pull request #4158 from CHItA/ticket/14321

[ticket/14321] Clean up arcihve controller logic

* CHItA/ticket/14321:
  [ticket/14321] Clean up arcihve controller logic
This commit is contained in:
Tristan Darricau 2016-02-02 21:15:17 +01:00
commit 154c7500ea

View file

@ -46,9 +46,9 @@ class archive_download
*/
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');
}
@ -65,7 +65,7 @@ class archive_download
{
$filename = $this->installer_config->get('update_file_archive', '');
if (!$filename)
if (empty($filename))
{
throw new http_exception(404, 'URL_NOT_FOUND');
}