[ticket/12536] Return empty array if stability unavailable

PHPBB3-12536
This commit is contained in:
Tristan Darricau 2014-05-13 12:48:08 +02:00
parent 36d5fff1c6
commit 3dddf1f4bf

View file

@ -225,7 +225,7 @@ class version_helper
if (!isset($info[$stability])) if (!isset($info[$stability]))
{ {
throw new \RuntimeException($this->user->lang('VERSIONCHECK_FAIL')); return array();
} }
return $info[$stability]; return $info[$stability];