Fix for non-script modes

This commit is contained in:
Steffen Schröder 2013-12-14 23:31:19 +01:00
parent 3463b06f53
commit 5a03deee5b

View File

@ -56,6 +56,13 @@ class ScriptSettings implements ConfiguratorMenu {
$this->maniaControl->client->query('GetModeScriptInfo');
$scriptInfo = $this->maniaControl->client->getResponse();
if (isset($scriptInfo['faultCode'])) {
// Not in script mode
$label = new Label();
$frame->add($label);
$label->setText($scriptInfo['faultString']);
return $frame;
}
$scriptParams = $scriptInfo['ParamDescs'];
$this->maniaControl->client->query('GetModeScriptSettings');