Fix php error when using strlen on null
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
3000f99370
commit
f5b6d8aec3
@ -2420,7 +2420,7 @@ class InsertEdit
|
|||||||
$foreigner['foreign_table']
|
$foreigner['foreign_table']
|
||||||
);
|
);
|
||||||
// Field to display from the 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)
|
$dispsql = 'SELECT ' . Util::backquote($display_field)
|
||||||
. ' FROM ' . Util::backquote($foreigner['foreign_db'])
|
. ' FROM ' . Util::backquote($foreigner['foreign_db'])
|
||||||
. '.' . Util::backquote($foreigner['foreign_table'])
|
. '.' . Util::backquote($foreigner['foreign_table'])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user