X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fprive%2Fobjets%2Fliste%2Farticles_fonctions.php;fp=www%2Fprive%2Fobjets%2Fliste%2Farticles_fonctions.php;h=cd5dd1f15ed7d1b907d219244934cf3f4b7300cd;hb=4f443dce95ff6f8221c189880a70c74ce1c1f238;hp=14f66dc31f50f3ba7bb81dd781aa5f1be5a47ec5;hpb=4a628e9b277d3617535f99d663ca79fa2e891177;p=lhc%2Fweb%2Fwww.git diff --git a/www/prive/objets/liste/articles_fonctions.php b/www/prive/objets/liste/articles_fonctions.php index 14f66dc3..cd5dd1f1 100644 --- a/www/prive/objets/liste/articles_fonctions.php +++ b/www/prive/objets/liste/articles_fonctions.php @@ -3,14 +3,16 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * Copyright (c) 2001-2017 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ -if (!defined('_ECRIRE_INC_VERSION')) return; +if (!defined('_ECRIRE_INC_VERSION')) { + return; +} function defaut_tri_defined($defaut) { if (!defined('_TRI_ARTICLES_RUBRIQUE')) { @@ -38,9 +40,11 @@ function defaut_tri_defined($defaut) { return $tri; } -function defaut_tri_par($par, $defaut){ - if (!defined('_TRI_ARTICLES_RUBRIQUE')) +function defaut_tri_par($par, $defaut) { + if (!defined('_TRI_ARTICLES_RUBRIQUE')) { return $par; + } $par = array_keys($defaut); + return reset($par); -} \ No newline at end of file +}