From c05affcd44d17e223dab8148635df59fbe9c50dd Mon Sep 17 00:00:00 2001 From: Matthieu Marcillaud <marcimat@rezo.net> Date: Sun, 31 Dec 2023 14:42:56 +0100 Subject: [PATCH] fix: Notice sur _chemin(null) --- ecrire/bootstrap/inc/path.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/bootstrap/inc/path.php b/ecrire/bootstrap/inc/path.php index 6044238fd8..c18f091d80 100644 --- a/ecrire/bootstrap/inc/path.php +++ b/ecrire/bootstrap/inc/path.php @@ -102,7 +102,7 @@ function spip_paths_loader(): Loader { * Liste des chemins, par ordre de priorité. **/ function _chemin(string|array|null $dir_path = null): array { - if (is_array($dir_path) || strlen($dir_path)) { + if (is_array($dir_path) || (is_string($dir_path) && strlen($dir_path))) { spip_paths(add: is_array($dir_path) ? $dir_path : explode(':', $dir_path)); } -- GitLab