summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/items.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/items.inc.php')
-rw-r--r--frontends/php/include/items.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php
index 89063143..4b4e6ea4 100644
--- a/frontends/php/include/items.inc.php
+++ b/frontends/php/include/items.inc.php
@@ -628,7 +628,7 @@
$result = delete_triggers_by_itemid($itemid);
if(!$result) return $result;
- $db_gitems = DBselect('select * from graphs_items where itemid='.$itemid);
+ $db_gitems = DBselect('select distinct graphid from graphs_items where itemid='.$itemid);
while($db_gitem = DBfetch($db_gitems))
{
$result = delete_graph($db_gitem["graphid"]);