Fix bug in checking for PMS version in settings
This commit is contained in:
@@ -1909,8 +1909,8 @@ $(document).ready(function() {
|
|||||||
url: 'get_server_identity',
|
url: 'get_server_identity',
|
||||||
async: true,
|
async: true,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
var version = data.version.split('.')
|
var version = (data.version ? data.version.split('.') : null);
|
||||||
if (parseInt(version[0]) >= 0 && parseInt(version[1]) >= 9 && parseInt(version[2]) >= 14) {
|
if (version && parseInt(version[0]) >= 0 && parseInt(version[1]) >= 9 && parseInt(version[2]) >= 14) {
|
||||||
$("#debugLogCheck").html("IP address is automatically logged for PMS version 0.9.14 and above.");
|
$("#debugLogCheck").html("IP address is automatically logged for PMS version 0.9.14 and above.");
|
||||||
$("#ip_logging_enable").attr("disabled", true);
|
$("#ip_logging_enable").attr("disabled", true);
|
||||||
$("#ip_logging_enable").attr("checked", true);
|
$("#ip_logging_enable").attr("checked", true);
|
||||||
|
Reference in New Issue
Block a user