diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 1b497efcc..7ed5cbbd2 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -176,6 +176,11 @@ function detect_system_timezone(){ //Detect the Time Zone string in systeminfo preg_match($regex, $string, $matches); + if(!isset($matches[2])) + { + return false; + } + $offset = $matches[2]; if($offset == ""){