diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-28 13:44:14 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-28 13:44:14 +0000 |
| commit | 1d60e86ae09578cbb684975403f52ce80eb42ed0 (patch) | |
| tree | e3d5555b02254133ecf12e8ef7e30afb669bb406 /frontends/php/include/export.inc.php | |
| parent | 6742b51b998f18ff3ab0ba0fb78d4c30913ebf7e (diff) | |
| download | zabbix-1d60e86ae09578cbb684975403f52ce80eb42ed0.tar.gz zabbix-1d60e86ae09578cbb684975403f52ce80eb42ed0.tar.xz zabbix-1d60e86ae09578cbb684975403f52ce80eb42ed0.zip | |
- [ZBX-237] fixed problem importing/exporting data (Artem)
- [DEV-90] fixes SQL for pgsql (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5207 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/export.inc.php')
| -rw-r--r-- | frontends/php/include/export.inc.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/frontends/php/include/export.inc.php b/frontends/php/include/export.inc.php index 3b851e4f..ee69e083 100644 --- a/frontends/php/include/export.inc.php +++ b/frontends/php/include/export.inc.php @@ -84,7 +84,9 @@ 'show_triggers' => '', 'graphtype' => '', 'yaxismin' => '', - 'yaxismax' => '') + 'yaxismax' => '', + 'show_legend' => '', + 'show_3d' => '') ), XML_TAG_GRAPH_ELEMENT => array( 'attribures' => array( @@ -168,7 +170,7 @@ } foreach($map['elements'] as $db_name => $xml_name) { - if(empty($data[$db_name])) continue; + if(!isset($data[$db_name])) continue; if(empty($xml_name)) $xml_name = $db_name; zbx_xmlwriter_write_element ($memory, $xml_name, $data[$db_name]); } @@ -213,7 +215,7 @@ } foreach($map['elements'] as $db_name => $xml_name) { - if(empty($data[$db_name])) continue; + if(!isset($data[$db_name])) continue; if(empty($xml_name)) $xml_name = $db_name; zbx_xmlwriter_write_element ($memory, $xml_name, $data[$db_name]); @@ -242,7 +244,7 @@ } foreach($map['elements'] as $db_name => $xml_name) { - if(empty($data[$db_name])) continue; + if(!isset($data[$db_name])) continue; if(empty($xml_name)) $xml_name = $db_name; zbx_xmlwriter_write_element ($memory, $xml_name, $data[$db_name]); } @@ -267,7 +269,7 @@ } foreach($map['elements'] as $db_name => $xml_name) { - if(empty($data[$db_name])) continue; + if(!isset($data[$db_name])) continue; if(empty($xml_name)) $xml_name = $db_name; zbx_xmlwriter_write_element ($memory, $xml_name, $data[$db_name]); } @@ -300,7 +302,7 @@ } foreach($map['elements'] as $db_name => $xml_name) { - if(empty($data[$db_name])) continue; + if(!isset($data[$db_name])) continue; if(empty($xml_name)) $xml_name = $db_name; zbx_xmlwriter_write_element ($memory, $xml_name, $data[$db_name]); } |
