From 4748b88d9c2d4f9a736fa387affc8bcd1b0ac690 Mon Sep 17 00:00:00 2001 From: alexgann Date: Fri, 19 Oct 2012 13:38:26 -0300 Subject: [PATCH] Fix to cellExists for non-existent namedRanges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found an issue where cellExists was failing on a non-existent namedRange as it was flowing down to the coordinateFromString (1217) call.  Proposed change trusts the REGEXP check and if $namedRange == NULL after all then simply return false (ie the cell does not exist). --- Classes/PHPExcel/Worksheet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/PHPExcel/Worksheet.php b/Classes/PHPExcel/Worksheet.php index 00f68fd5..e8f9702a 100644 --- a/Classes/PHPExcel/Worksheet.php +++ b/Classes/PHPExcel/Worksheet.php @@ -1203,6 +1203,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable } } } + else { return false; } } // Uppercase coordinate