diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-07-18 14:00:31 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-07-18 14:00:31 +0000 |
commit | f90aa7662103b352e47970308f76597a085e5c3d (patch) | |
tree | 2c70821601ca335fc434c92e177fbd406647354d /frontends/php/popup_gitem.php | |
parent | 4e4aa7eb198963720b377cd568825309616dce8a (diff) | |
download | zabbix-f90aa7662103b352e47970308f76597a085e5c3d.tar.gz zabbix-f90aa7662103b352e47970308f76597a085e5c3d.tar.xz zabbix-f90aa7662103b352e47970308f76597a085e5c3d.zip |
- fixed adding new pie graph (Artem)
- improved javascripts (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4459 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup_gitem.php')
-rw-r--r-- | frontends/php/popup_gitem.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/popup_gitem.php b/frontends/php/popup_gitem.php index bdc36419..ed126281 100644 --- a/frontends/php/popup_gitem.php +++ b/frontends/php/popup_gitem.php @@ -131,7 +131,8 @@ function update_graph_item(formname,list_name,gid,itemid,color,drawtype,sortorde $_REQUEST['sortorder'] = get_request('sortorder',0); $graphid = get_request('graphid',false); - if(($_REQUEST['type'] == GRAPH_ITEM_SUM) && ($graphid !== false)){ + + if(isset($_REQUEST['type']) && ($_REQUEST['type'] == GRAPH_ITEM_SUM) && ($graphid !== false)){ $sql = 'SELECT COUNT(itemid) as items'. ' FROM graphs_items '. ' WHERE type='.GRAPH_ITEM_SUM. |