From 0065fbc25e8d71876e96d221350132fc3acadf40 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 19 Oct 2018 09:33:28 +0200 Subject: [PATCH] fix PHP Warning: A non-numeric value encountered --- api/src/Etemplate/Widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget.php b/api/src/Etemplate/Widget.php index 9dea8f593f..2a6c886844 100644 --- a/api/src/Etemplate/Widget.php +++ b/api/src/Etemplate/Widget.php @@ -622,7 +622,7 @@ class Widget } if (!is_numeric($c)) $c = self::chrs2num($c); $col = self::num2chrs($c-1); // $c-1 to get: 0:'@', 1:'A', ... - $col_ = self::num2chrs($c_-1); + if (is_numeric($c_)) $col_ = self::num2chrs($c_-1); $row_cont = $cont[$row]; $col_row_cont = $cont[$col.$row];