From: Janusz Dobrowolski Date: Fri, 16 Nov 2012 14:49:45 +0000 (+0100) Subject: Small fix for 5.3 compatibility. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6aadd4956b072d4d8e981fccb423a64b8ae7ced0;p=textcart.git Small fix for 5.3 compatibility. --- diff --git a/reporting/includes/Workbook.php b/reporting/includes/Workbook.php index 185daef..56c644f 100644 --- a/reporting/includes/Workbook.php +++ b/reporting/includes/Workbook.php @@ -3118,7 +3118,7 @@ class Spreadsheet_Excel_Writer_Parser function _expression() { // If it's a string return a string node - if (ereg("^\"[^\"]{0,255}\"$", $this->_current_token)) { + if (preg_match("/^\"[^\"]{0,255}\"$/", $this->_current_token)) { $result = $this->_createTree($this->_current_token, '', ''); $this->_advance(); return $result;