summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/graphs.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-25 10:10:08 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-25 10:10:08 +0000
commit92f62ad44d8aa2de10a4949cdb761c60c6eed31e (patch)
tree1dd9528bfdbbaa15aa2039c616a14d4364a55bb0 /frontends/php/include/graphs.inc.php
parent00a0d7d280dbb103e16326403162e561eb86784a (diff)
- [DEV-174] added ability to edit user medias (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5786 97f52cf1-0a1b-0410-bd0e-c28be96e8082
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 dae343fd..1c4d35b4 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_id=$graphid");
if($result){
info('Graph "'.$graph['name'].'" deleted from hosts '.implode(',',$host_list));