diff options
Diffstat (limited to 'frontends/php/include/items.inc.php')
| -rw-r--r-- | frontends/php/include/items.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 98a25bba..31473819 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -577,10 +577,10 @@ $result = delete_triggers_by_itemid($itemid); if(!$result) return $result; - $db_gitems = get_graphitem_by_itemid($itemid); + $db_gitems = DBselect('select * from graphs_items where itemid='.$itemid); while($db_gitem = DBfetch($db_gitems)) { - $result = delete_graph_by_itemid($db_gitem["graphid"]); + $result = delete_graph($db_gitem["graphid"]); if(!$result) return $result; } |
