diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-23 13:44:21 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-23 13:44:21 +0000 |
| commit | b5adb63b7f31b1c4f13cd9c862a663956e5ddeb4 (patch) | |
| tree | c1793f62842a2c1fbec9abc2e02445853cbf8fdc /frontends/php/include | |
| parent | 6c2803e771f9844a204cdc47cabe5f06ff4c06d8 (diff) | |
| download | zabbix-b5adb63b7f31b1c4f13cd9c862a663956e5ddeb4.tar.gz zabbix-b5adb63b7f31b1c4f13cd9c862a663956e5ddeb4.tar.xz zabbix-b5adb63b7f31b1c4f13cd9c862a663956e5ddeb4.zip | |
- [ZBX-181] merged rev. 5081:5094 of branches/1.4/ (Artem) [fixed Activate/Disable items from applications]
git-svn-id: svn://svn.zabbix.com/trunk@5096 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/items.inc.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 2cb22b50..d0d0dd96 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -681,12 +681,10 @@ # Activate Item - function activate_item($itemid) - { + function activate_item($itemid){ // first update status for child items $db_tmp_items = DBselect("select itemid, hostid from items where templateid=$itemid"); - while($db_tmp_item = DBfetch($db_tmp_items)) - { + while($db_tmp_item = DBfetch($db_tmp_items)){ // recursion activate_item($db_tmp_item["itemid"]); } |
