From bbafe98cf379fa62913bc5f98c8a6566dec58d3b Mon Sep 17 00:00:00 2001 From: Graham McNicoll Date: Mon, 30 Nov 2015 18:04:54 -0800 Subject: [PATCH] Fixed error with undefined $letter variable --- classes/report_formats/XlsReportBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/report_formats/XlsReportBase.php b/classes/report_formats/XlsReportBase.php index ee07c3b3..720e40b2 100644 --- a/classes/report_formats/XlsReportBase.php +++ b/classes/report_formats/XlsReportBase.php @@ -3,7 +3,8 @@ abstract class XlsReportBase extends ReportFormatBase { private static function columnLetter($c){ $c = intval($c); if ($c <= 0) return ''; - + $letter = ''; + while($c != 0){ $p = ($c - 1) % 26; $c = intval(($c - $p) / 26);