mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 15:01:19 +00:00
Replace disallowed operators in src/updater/
This commit is contained in:
parent
ae03c70dfc
commit
61f8144280
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user