Skip to content

Commit

Permalink
fixed incorrect boolean conversion (fixes #84).
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 7, 2023
1 parent d72d2ef commit 34e6744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmlapi/programactions.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ if {[info exists sid] && [check_session $sid]} {
object obj = dom.GetObject(prgId);
if (obj && obj.IsTypeOf(OT_PROGRAM)) {
if ((active == "false") || (active == "true")){
obj.Active(active);
obj.Active(active == "true");
}
if ((visible == "false") || (visible == "true")){
obj.Visible(visible);
obj.Visible(visible == "true");
}
Write(obj);
}
Expand Down

0 comments on commit 34e6744

Please sign in to comment.