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.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php
index fffeee25..a27402ae 100644
--- a/frontends/php/include/graphs.inc.php
+++ b/frontends/php/include/graphs.inc.php
@@ -65,6 +65,16 @@
return $result;
}
+ function get_graphitem_by_itemid($itemid)
+ {
+ $result=DBselect("select * from graphs_items where itemid=$itemid");
+ if(DBnum_rows($result) == 1)
+ {
+ return DBfetch($result);
+ }
+ return $result;
+ }
+
function get_graph_by_graphid($graphid)
{