Loading src/Helpers/Builds.php +5 −2 Original line number Diff line number Diff line Loading @@ -162,7 +162,10 @@ $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){ 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'] : ''; Loading Loading
src/Helpers/Builds.php +5 −2 Original line number Diff line number Diff line Loading @@ -162,7 +162,10 @@ $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){ 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'] : ''; Loading