From 648279d1c410b3763cd286f4b005ece45a3369b2 Mon Sep 17 00:00:00 2001 From: Xavier Noguer Gallego Date: Wed, 23 Apr 2003 22:51:30 +0000 Subject: [PATCH] fixing glitch with zeros in formulas (JT Hughes) and cleaning up a bit git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@124401 c90b9560-bf6c-de11-be94-00142212c4b1 --- Writer/Parser.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Writer/Parser.php b/Writer/Parser.php index 791c30a..8825b2c 100644 --- a/Writer/Parser.php +++ b/Writer/Parser.php @@ -1379,14 +1379,15 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR else { return($this->raiseError("Sintactic error: coma expected $num_args")); } - $result2 = $this->_condition(); //$this->_expression(); + $result2 = $this->_condition(); if($this->isError($result2)) { return($result2); } $result = $this->_createTree('arg', $result, $result2); } - else { - $result2 = $this->_condition(); //$this->_expression(); + else // first argument + { + $result2 = $this->_condition(); if($this->isError($result2)) { return($result2); }