From 2f338c37b3ab42bc8fb5e19c50c286fe729d6911 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 6 Feb 2019 11:29:10 +0000 Subject: [PATCH] php7 compatibility into phpgraphlib.php --- codepot/src/codepot/libraries/phpgraphlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/libraries/phpgraphlib.php b/codepot/src/codepot/libraries/phpgraphlib.php index 70aee388..d09f8d7e 100644 --- a/codepot/src/codepot/libraries/phpgraphlib.php +++ b/codepot/src/codepot/libraries/phpgraphlib.php @@ -788,7 +788,7 @@ class PHPGraphLib { } } - protected function imagelinedashed(&$image_handle, $x_axis_x1, $yLocation, $x_axis_x2 , $yLocation, $color) + protected function imagelinedashed(&$image_handle, $x_axis_x1, $yLocation, $x_axis_x2 , $ygLocation, $color) { $step = 3; for ($i = $x_axis_x1; $i < $x_axis_x2 -1; $i += ($step*2)) { @@ -977,7 +977,7 @@ class PHPGraphLib { protected function displayErrors() { - if (count($this->error) > 0) { + if (!is_null($this->error) && count($this->error) > 0) { $lineHeight = 12; $errorColor = imagecolorallocate($this->image, 0, 0, 0); $errorBackColor = imagecolorallocate($this->image, 255, 204, 0);