Fix for non-script modes
This commit is contained in:
parent
3463b06f53
commit
5a03deee5b
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user