Skip to content
Extraits de code Groupes Projets
Valider c05affcd rédigé par marcimat's avatar marcimat
Parcourir les fichiers

fix: Notice sur _chemin(null)

parent 9be7c44a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -102,7 +102,7 @@ function spip_paths_loader(): Loader { ...@@ -102,7 +102,7 @@ function spip_paths_loader(): Loader {
* Liste des chemins, par ordre de priorité. * Liste des chemins, par ordre de priorité.
**/ **/
function _chemin(string|array|null $dir_path = null): array { 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)); spip_paths(add: is_array($dir_path) ? $dir_path : explode(':', $dir_path));
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter