diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-15 14:06:26 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-15 14:06:26 +0000 |
| commit | b6ecd0b1c0d40bca9a40ab08ddce2a2fa0aa80bf (patch) | |
| tree | 38bb138746c59e28e6a21bea133ba900fbaeabf1 /frontends/php/include/hosts.inc.php | |
| parent | b3c8ef909f5494a311e39f89b16d81a4c559f280 (diff) | |
- added Clone functionality (Eugene)
- more PostgreSQL support
- allow schama generation in any place calling
git-svn-id: svn://svn.zabbix.com/trunk@3831 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
| -rw-r--r-- | frontends/php/include/hosts.inc.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php index 1d7e785d..044df43a 100644 --- a/frontends/php/include/hosts.inc.php +++ b/frontends/php/include/hosts.inc.php @@ -771,14 +771,18 @@ require_once "include/items.inc.php"; if($templateid != null) { - $db_tmp_apps = get_applications_by_hostid($db_app["templateid"]); - if(is_array($templateid)) + unset($skip); + $db_tmp_apps =& get_applications_by_hostid($db_app["templateid"]); + while($tmp_apps_data = DBfetch($db_tmp_apps)) { - if(!isset($templateid[$db_tmp_app["hostid"]])) - continue; + if(!isset($templateid[$tmp_app_data["hostid"]])) + { + $skip = true; + break; + } } - elseif($templateid != $db_tmp_app["hostid"]) - continue; + if(isset($skip)) continue; + } if($unlink_mode) |
