summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/graphs.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
-rw-r--r--frontends/php/include/graphs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php
index 6f5c00f6..88103815 100644
--- a/frontends/php/include/graphs.inc.php
+++ b/frontends/php/include/graphs.inc.php
@@ -498,7 +498,7 @@
$result = copy_graphitems_for_host($graphid, $new_graphid, $hostid);
if(!$result)
{
- delete_graph($graphid);
+ delete_graph($new_graphid);
}
return $result;
}