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 71a69bd9..0251b177 100644
--- a/frontends/php/include/graphs.inc.php
+++ b/frontends/php/include/graphs.inc.php
@@ -645,7 +645,7 @@
/* delete graph */
$result &= DBexecute('DELETE FROM graphs_items WHERE graphid='.$graphid);
$result &= DBexecute('DELETE FROM graphs WHERE graphid='.$graphid);
- $result &= DBexecute('DELETE FROM profiles WHERE idx="web.favorite.graphids" AND source="graphid" AND value='.$graphid);
+ $result &= DBexecute("DELETE FROM profiles WHERE idx='web.favorite.graphids' AND source='graphid' AND value='$graphid'");
if($result){
info('Graph "'.$graph['name'].'" deleted from hosts '.implode(',',$host_list));