Prohibit the ability to check version if it was disabled.

Signed-off-by: Alexei Yuzhakov <sibprogrammer@gmail.com>
This commit is contained in:
Alexei Yuzhakov 2015-06-14 20:46:11 +06:00
parent 60dd86ad70
commit 645cf9f978

View File

@ -4491,6 +4491,10 @@ class PMA_Util
*/
public static function getLatestVersion()
{
if (!$GLOBALS['cfg']['VersionCheck']) {
return array();
}
// wait 3s at most for server response, it's enough to get information
// from a working server
$connection_timeout = 3;