diff --git a/xmlapi/sysvarlist.cgi b/xmlapi/sysvarlist.cgi index 9c05eea..58432b1 100755 --- a/xmlapi/sysvarlist.cgi +++ b/xmlapi/sysvarlist.cgi @@ -48,8 +48,14 @@ if {[info exists sid] && [check_session $sid]} { if (sShowText == "true") { Write("' value_text='"); WriteXML( oSysVar.ValueList().StrValueByIndex(';', oSysVar.Value())); } - Write("' min='"); WriteXML( oSysVar.ValueMin()); - Write("' max='"); WriteXML( oSysVar.ValueMax()); + Write("' min='"); + if (oSysVar.ValueType() == 4) { + WriteXML( oSysVar.ValueMin()); + } + Write("' max='"); + if (oSysVar.ValueType() == 4) { + WriteXML( oSysVar.ValueMax()); + } Write("' unit='"); WriteXML( oSysVar.ValueUnit()); Write("' type='"); WriteXML( oSysVar.ValueType()); Write("' subtype='"); WriteXML( oSysVar.ValueSubType());