Fix "TypeError: strlen() expects parameter 1 to be string, null given"
Found on writing tests, should not happen Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
dce146f596
commit
4d7890d1f6
@ -210,7 +210,7 @@ class NavigationTree
|
||||
{
|
||||
$retval = 0;
|
||||
|
||||
if (strlen($GLOBALS['db']) == 0) {
|
||||
if (strlen($GLOBALS['db'] ?? '') === 0) {
|
||||
return $retval;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user