diff --git a/src/pocketmine/CrashDump.php b/src/pocketmine/CrashDump.php index 6f250dcec..cdf67c6a5 100644 --- a/src/pocketmine/CrashDump.php +++ b/src/pocketmine/CrashDump.php @@ -206,9 +206,16 @@ class CrashDump{ if($this->server->getProperty("auto-report.send-settings", true) !== false){ $this->data["parameters"] = (array) $argv; - $this->data["server.properties"] = @file_get_contents($this->server->getDataPath() . "server.properties"); - $this->data["server.properties"] = preg_replace("#^rcon\\.password=(.*)$#m", "rcon.password=******", $this->data["server.properties"]); - $this->data["pocketmine.yml"] = @file_get_contents($this->server->getDataPath() . "pocketmine.yml"); + if(($serverDotProperties = @file_get_contents($this->server->getDataPath() . "server.properties")) !== false){ + $this->data["server.properties"] = preg_replace("#^rcon\\.password=(.*)$#m", "rcon.password=******", $serverDotProperties); + }else{ + $this->data["server.properties"] = $serverDotProperties; + } + if(($pocketmineDotYml = @file_get_contents($this->server->getDataPath() . "pocketmine.yml")) !== false){ + $this->data["pocketmine.yml"] = $pocketmineDotYml; + }else{ + $this->data["pocketmine.yml"] = ""; + } }else{ $this->data["pocketmine.yml"] = ""; $this->data["server.properties"] = "";