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.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php
index 065f1b33..9abdf176 100644
--- a/frontends/php/include/graphs.inc.php
+++ b/frontends/php/include/graphs.inc.php
@@ -87,7 +87,7 @@
return $row;
}
error("No graph with graphid=[$graphid]");
- return $result;
+ return false;
}
function get_graphs_by_templateid($templateid)
@@ -178,6 +178,10 @@
if($result)
{
info("Graph '".$graph["name"]."' deleted");
+
+ // delete graph permisions
+ DBexecute('delete from rights where name=\'Graph\' and id='.$graphid);
+
}
return $result;
}