Replace disallowed operators in src/updater/

This commit is contained in:
Dylan K. Taylor 2022-01-20 19:21:04 +00:00
parent ae03c70dfc
commit 61f8144280
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class UpdateCheckTask extends AsyncTask{
if($response !== null){
$response = json_decode($response->getBody(), true);
if(is_array($response)){
if(isset($response["error"]) and is_string($response["error"])){
if(isset($response["error"]) && is_string($response["error"])){
$this->error = $response["error"];
}else{
$mapper = new \JsonMapper();

View File

@ -68,9 +68,9 @@ class UpdateChecker{
$this->showConsoleUpdate();
}
}else{
if(!VersionInfo::IS_DEVELOPMENT_BUILD and $this->getChannel() !== "stable"){
if(!VersionInfo::IS_DEVELOPMENT_BUILD && $this->getChannel() !== "stable"){
$this->showChannelSuggestionStable();
}elseif(VersionInfo::IS_DEVELOPMENT_BUILD and $this->getChannel() === "stable"){
}elseif(VersionInfo::IS_DEVELOPMENT_BUILD && $this->getChannel() === "stable"){
$this->showChannelSuggestionBeta();
}
}