From 3491a99fc3cae794e0ffa5797a133a3ab00a4a61 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 7 Jun 2023 11:33:59 -0400 Subject: [PATCH] ServerId can be null so must have quotes around it --- web/skins/classic/views/js/montage.js.php | 2 +- web/skins/classic/views/js/watch.js.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/montage.js.php b/web/skins/classic/views/js/montage.js.php index 25e3a7cc4..d3e91ebea 100644 --- a/web/skins/classic/views/js/montage.js.php +++ b/web/skins/classic/views/js/montage.js.php @@ -18,7 +18,7 @@ foreach ( $monitors as $monitor ) { ?> monitorData[monitorData.length] = { 'id': Id() ?>, - 'server_id': ServerId() ?>, + 'server_id': 'ServerId() ?>', 'connKey': 'connKey() ?>', 'width': ViewWidth() ?>, 'height':ViewHeight() ?>, diff --git a/web/skins/classic/views/js/watch.js.php b/web/skins/classic/views/js/watch.js.php index 9fb83b0d2..f2f9c0f18 100644 --- a/web/skins/classic/views/js/watch.js.php +++ b/web/skins/classic/views/js/watch.js.php @@ -43,7 +43,7 @@ foreach ($monitors as $m) { ?> monitorData[monitorData.length] = { 'id': Id() ?>, - 'server_id': ServerId() ?>, + 'server_id': 'ServerId() ?>', 'connKey': connKey() ?>, 'width': ViewWidth() ?>, 'height':ViewHeight() ?>,