diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 77b119f783..56380fabc6 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -337,12 +337,23 @@ function print_graph_tag($args) function generate_graph_tag($args) { $urlargs = array(); + $w = 0; + $h = 0; foreach ($args as $key => $arg) { + if(strtolower($key) == 'width') + $w = $arg; + switch (strtolower($key)) { + case 'width': + $w = $arg; + break; + case 'height': + $h = $arg; + } $urlargs[] = $key."=".urlencode($arg); } - return ''; + return ''; } function generate_graph_js_state($args) {