From 4c6b074e85d7d8e97b9f125f5fbc2949bc8839dd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Feb 2019 20:12:17 +0100 Subject: buildmaster/build-list-links.php,buildmaster/build-list.php,buildmaster/build-slaves.php,buildmaster/deletion-links.php,buildmaster/dependencies.php,buildmaster/log.php,buildmaster/mysql-issues.php,buildmaster/statistics.php,buildmaster/todos.php,lib/format.php,mirrors/index.php,packages/index.php: isset($_GET[$x]) -> array_key_exists($x, $_GET) --- buildmaster/statistics.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'buildmaster/statistics.php') diff --git a/buildmaster/statistics.php b/buildmaster/statistics.php index 4f2398b..05d06c6 100644 --- a/buildmaster/statistics.php +++ b/buildmaster/statistics.php @@ -133,9 +133,9 @@ function print_graph($data, $color) { ImageLine( $im, scale($last_t,$t_min,$t_max,$width-2*$border,false)+$border+$legend_line_length, - scale($last_val,0,$val_max,-$height+2*$border,isset($_GET["log"]))+$border, + scale($last_val,0,$val_max,-$height+2*$border,array_key_exists("log", $_GET))+$border, scale($t,$t_min,$t_max,$width-2*$border,false)+$border+$legend_line_length, - scale($val,0,$val_max,-$height+2*$border,isset($_GET["log"]))+$border, + scale($val,0,$val_max,-$height+2*$border,array_key_exists("log", $_GET))+$border, $color ); $last_t = $t; @@ -145,7 +145,7 @@ function print_graph($data, $color) { $im, 5, $width+$legend_line_length, - scale($last_val,0,$val_max,-$height+2*$border,isset($_GET["log"]))+$border - ImageFontHeight(5)/2, + scale($last_val,0,$val_max,-$height+2*$border,array_key_exists("log", $_GET))+$border - ImageFontHeight(5)/2, " ".$data[$t_max], $color ); @@ -178,12 +178,12 @@ for ($val=0; $val<=$val_max;) { ImageLine( $im, 0, - scale($val,0,$val_max,-$height+2*$border,isset($_GET["log"]))+$border, + scale($val,0,$val_max,-$height+2*$border,array_key_exists("log", $_GET))+$border, $legend_line_length, - scale($val,0,$val_max,-$height+2*$border,isset($_GET["log"]))+$border, + scale($val,0,$val_max,-$height+2*$border,array_key_exists("log", $_GET))+$border, $foreground_color ); - if (! isset($_GET["log"])) + if (! array_key_exists("log", $_GET)) $val+=pow(10,round(log($val_max)/log(10))-1); elseif ($val==0) $val++; -- cgit v1.2.3