From 4cbcf4889bfeb447f9f32c83cc4f309e66288806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 17 Dec 2019 22:37:14 -0300 Subject: [PATCH] Fix TypeError in Util class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeError: str_replace() expects parameter 3 to be string or array, int given Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/classes/Util.php b/libraries/classes/Util.php index 8cc028611b..fc83f3e587 100644 --- a/libraries/classes/Util.php +++ b/libraries/classes/Util.php @@ -900,7 +900,7 @@ class Util // '0' is also empty for php :-( if (strlen((string) $a_name) > 0 && $a_name !== '*') { - return '`' . str_replace('`', '``', $a_name) . '`'; + return '`' . str_replace('`', '``', (string) $a_name) . '`'; } return $a_name;