Skip to content

Commit 34e6744

Browse files
committed
fixed incorrect boolean conversion (fixes #84).
1 parent d72d2ef commit 34e6744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmlapi/programactions.cgi

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ if {[info exists sid] && [check_session $sid]} {
3737
object obj = dom.GetObject(prgId);
3838
if (obj && obj.IsTypeOf(OT_PROGRAM)) {
3939
if ((active == "false") || (active == "true")){
40-
obj.Active(active);
40+
obj.Active(active == "true");
4141
}
4242
if ((visible == "false") || (visible == "true")){
43-
obj.Visible(visible);
43+
obj.Visible(visible == "true");
4444
}
4545
Write(obj);
4646
}

0 commit comments

Comments
 (0)