diff options
Diffstat (limited to 'frontends/php/triggers.php')
-rw-r--r-- | frontends/php/triggers.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php index 91022bf0..074846b0 100644 --- a/frontends/php/triggers.php +++ b/frontends/php/triggers.php @@ -342,14 +342,14 @@ continue; } - $description = array( - new CCheckBox( - "g_triggerid[]", /* name */ - NULL, /* checked */ - NULL, /* action */ - $row["triggerid"]), /* value */ - SPACE - ); + $chkBox = new CCheckBox( + "g_triggerid[]", /* name */ + NULL, /* checked */ + NULL, /* action */ + $row["triggerid"]); /* value */ + + if($row["templateid"] > 0) $chkBox->SetEnabled(false); + $description = array($chkBox,SPACE); if($row["templateid"] == 0) { |