Re: [rang] Eviter une notice « Warning : in_array() expects parameter (...)

nicod_ <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Euh... pourquoi relancer un appel à lire_config('rang/objets') alors 
qu'il est fait juste au dessus ?

Il aurait été plus simple de faire juste :
$liste = lire_config('rang/objets', array());
sans autre test.


Le 20/11/2020 à 13:38, fa_b a écrit :
> spip-contrib-extensions/rang
> -
> Par fa_b, le 20 novembre 2020 à 13h37min :
> 
> Eviter une notice «Warning: in_array() expects parameter 2 to be array, null given»
> 
> Quand on a pas encore touché à la config de Rang, on a plusieurs notices qui s'affichent :
> Warning: in_array() expects parameter 2 to be array, null given on line 67
> 
> 
> *Modifié*
>      rang_fonctions.php
> 
> Détails : https://git.spip.net/spip-contrib-extensions/rang/commit/0d3267eb9b7c94bc50e8f4c7d33eb9175c87a1bf
> 


-- 
nicod_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.