Fixed some weak comparisons

This commit is contained in:
Dylan K. Taylor
2017-06-05 21:07:24 +01:00
parent 6ea0eb47ec
commit b7b7bcee4f
6 changed files with 8 additions and 8 deletions

View File

@ -2043,7 +2043,7 @@ class Server{
}
if($this->getProperty("network.upnp-forwarding", false) == true){
if($this->getProperty("network.upnp-forwarding", false)){
$this->logger->info("[UPnP] Trying to port forward...");
UPnP::PortForward($this->getPort());
}
@ -2140,7 +2140,7 @@ class Server{
if($p instanceof Plugin and !($p->getPluginLoader() instanceof PharPluginLoader)){
$report = false;
}
}elseif(\Phar::running(true) == ""){
}elseif(\Phar::running(true) === ""){
$report = false;
}
if($dump->getData()["error"]["type"] === "E_PARSE" or $dump->getData()["error"]["type"] === "E_COMPILE_ERROR"){