From 5fae930f852155dfec449a1af5965bf8e4dd994a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Mar 2018 19:22:08 +0200 Subject: [PATCH] Fix warnings --- htdocs/includes/evalmath/evalmath.class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/evalmath/evalmath.class.php b/htdocs/includes/evalmath/evalmath.class.php index 9787f3d1bb6..9426e82a8ff 100644 --- a/htdocs/includes/evalmath/evalmath.class.php +++ b/htdocs/includes/evalmath/evalmath.class.php @@ -85,8 +85,8 @@ LICENSE POSSIBILITY OF SUCH DAMAGE. */ -class EvalMath { - +class EvalMath +{ var $suppress_errors = false; var $last_error = null; var $last_error_code = null; @@ -136,7 +136,8 @@ class EvalMath { } $args = explode(",", preg_replace("/\s+/", "", $matches[2])); // get the arguments if (($stack = $this->nfx($matches[3])) === false) return false; // see if it can be converted to postfix - for ($i = 0; $iv)) { @@ -370,8 +371,8 @@ class EvalMath { /** * Class for internal use */ -class EvalMathStack { - +class EvalMathStack +{ var $stack = array(); var $count = 0;