ServerId can be null so must have quotes around it

This commit is contained in:
Isaac Connor
2023-06-07 11:33:59 -04:00
parent 2a3b16076c
commit 3491a99fc3
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ foreach ( $monitors as $monitor ) {
?>
monitorData[monitorData.length] = {
'id': <?php echo $monitor->Id() ?>,
'server_id': <?php echo $monitor->ServerId() ?>,
'server_id': '<?php echo $monitor->ServerId() ?>',
'connKey': '<?php echo $monitor->connKey() ?>',
'width': <?php echo $monitor->ViewWidth() ?>,
'height':<?php echo $monitor->ViewHeight() ?>,

View File

@@ -43,7 +43,7 @@ foreach ($monitors as $m) {
?>
monitorData[monitorData.length] = {
'id': <?php echo $m->Id() ?>,
'server_id': <?php echo $m->ServerId() ?>,
'server_id': '<?php echo $m->ServerId() ?>',
'connKey': <?php echo $m->connKey() ?>,
'width': <?php echo $m->ViewWidth() ?>,
'height':<?php echo $m->ViewHeight() ?>,