mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
Fix Bug #52055 - php notices if phpbb.com is not reachable
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10195 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5e22b11be1
commit
823cbdc2d9
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ class acp_update
|
||||||
|
|
||||||
$info = obtain_latest_version_info(request_var('versioncheck_force', false), true);
|
$info = obtain_latest_version_info(request_var('versioncheck_force', false), true);
|
||||||
|
|
||||||
|
if ($info === false)
|
||||||
|
{
|
||||||
|
trigger_error('VERSIONCHECK_FAIL', E_USER_WARNING);
|
||||||
|
}
|
||||||
|
|
||||||
$info = explode("\n", $info);
|
$info = explode("\n", $info);
|
||||||
$latest_version = trim($info[0]);
|
$latest_version = trim($info[0]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue