summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/bulkloader.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/bulkloader.inc.php')
-rw-r--r--frontends/php/include/bulkloader.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/bulkloader.inc.php b/frontends/php/include/bulkloader.inc.php
index c03be61b..7ef22239 100644
--- a/frontends/php/include/bulkloader.inc.php
+++ b/frontends/php/include/bulkloader.inc.php
@@ -28,14 +28,14 @@ include_once "include/config.inc.php";
// Returns: 0 if unable to create, otherwise it returns the groupID
function create_Host_Group($group)
{
- $result=DBselect("select distinct(groupid) from groups where name='$group'");
+ $result=DBselect("select distinct(groupid) from groups where name='".zbx_ads($group)."'");
if(DBnum_rows($result)>0)
{
$row=DBfetch($result);
return $row["groupid"];
}
- $result=DBexecute("insert into groups (name) values ('$group')");
+ $result=DBexecute("insert into groups (name) values ('".zbx_ads($group)."')");
if($result)
{
return DBinsert_id($result,"groups","name");