diff --git a/ManiaControl.php b/ManiaControl.php index eadcc891..a9f02325 100644 --- a/ManiaControl.php +++ b/ManiaControl.php @@ -3,7 +3,7 @@ * ManiaControl Server Controller for ManiaPlanet Server * * @author ManiaControl Team - * @copyright 2014-2018 ManiaControl Team + * @copyright 2014-2017 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ diff --git a/core/Callbacks/Structures/Common/StatusCallbackStructure.php b/core/Callbacks/Structures/Common/StatusCallbackStructure.php index f2175466..c9f22d2e 100644 --- a/core/Callbacks/Structures/Common/StatusCallbackStructure.php +++ b/core/Callbacks/Structures/Common/StatusCallbackStructure.php @@ -27,7 +27,9 @@ class StatusCallbackStructure extends BaseResponseStructure { parent::__construct($maniaControl, $data); $this->active = $this->getPlainJsonObject()->active; - $this->available = $this->getPlainJsonObject()->available; + if(property_exists($this->getPlainJsonObject(), "available")){ + $this->available = $this->getPlainJsonObject()->available; + } } /** diff --git a/core/ManiaControl.php b/core/ManiaControl.php index 3c8466bd..05ac6133 100644 --- a/core/ManiaControl.php +++ b/core/ManiaControl.php @@ -52,7 +52,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener, /* * Constants */ - const VERSION = '0.229'; + const VERSION = '0.230'; const API_VERSION = '2013-04-16'; const MIN_DEDIVERSION = '2017-05-03_21_00'; const SCRIPT_TIMEOUT = 40;