diff --git a/src/Helpers/Builds.php b/src/Helpers/Builds.php index add41407d48719c9833b8be53faed15860ccc54f..0c8d8e53cf45e7f0178ebd8609cb341e882a7996 100644 --- a/src/Helpers/Builds.php +++ b/src/Helpers/Builds.php @@ -162,8 +162,11 @@ $params = $this->postData['params']; preg_match_all('/.*(eOS) v([0-9\.]+)-?((alpha|beta|rc)(\.\d)?)?.*/', $_SERVER['HTTP_USER_AGENT'], $currentTokens); $shouldDisplayPatch=false; - if(count($currentTokens[0])>0){ - $shouldDisplayPatch = true; + if(isset($currentTokens[2]) && count($currentTokens[2])>0){ + $this->currenteOSVersion = $currentTokens[2][0]; + $versionArray = explode(".", $this->currenteOSVersion); + if($versionArray[0] > 1 || $versionArray[0] == 1 && $versionArray[1] > 5) + $shouldDisplayPatch = true; } $device = isset($params['device']) ? $params['device'] : ''; $channels = isset($params['channels']) ? $params['channels'][0] : '';