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

nicod_ <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Le 21/11/2020 à 14:37, nicod_ a écrit :
> 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.

https://git.spip.net/spip-contrib-extensions/rang/commit/56d541b325991141e5ecab59db55ab733abea47c

-- 
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.