From 06f68476ff0a32ab823885118054595894016f06 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Fri, 12 May 2006 07:01:06 +0000 Subject: - fixes to zabbix_sender and other changes (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@2823 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/bulkloader.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/php/include/bulkloader.inc.php') diff --git a/frontends/php/include/bulkloader.inc.php b/frontends/php/include/bulkloader.inc.php index 1de27ccb..0175c167 100644 --- a/frontends/php/include/bulkloader.inc.php +++ b/frontends/php/include/bulkloader.inc.php @@ -29,9 +29,9 @@ include_once "include/config.inc.php"; function create_Host_Group($group) { $result=DBselect("select distinct(groupid) from groups where name=".zbx_dbstr($group)); - if(DBnum_rows($result)>0) + $row=DBfetch($result); + if($row) { - $row=DBfetch($result); return $row["groupid"]; } @@ -51,9 +51,9 @@ include_once "include/config.inc.php"; function create_User_Group($group) { $result=DBselect("select distinct(usrgrpid) from usrgrp where name='$group'"); - if(DBnum_rows($result)>0) + $row=DBfetch($result); + if($row) { - $row=DBfetch($result); return $row["usrgrpid"]; } -- cgit