From f5b6d8aec3c1ab6d19ee803bbd691991e76ed277 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 30 Dec 2019 15:47:48 +0100 Subject: [PATCH] Fix php error when using strlen on null Signed-off-by: William Desportes --- libraries/classes/InsertEdit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/classes/InsertEdit.php b/libraries/classes/InsertEdit.php index d2f09c887f..d679eff375 100644 --- a/libraries/classes/InsertEdit.php +++ b/libraries/classes/InsertEdit.php @@ -2420,7 +2420,7 @@ class InsertEdit $foreigner['foreign_table'] ); // Field to display from the foreign table? - if ($display_field !== null && strlen($display_field) > 0) { + if (is_string($display_field) && strlen($display_field) > 0) { $dispsql = 'SELECT ' . Util::backquote($display_field) . ' FROM ' . Util::backquote($foreigner['foreign_db']) . '.' . Util::backquote($foreigner['foreign_table'])