X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fiterateur%2Fdata.php;h=4bd93c4789c3abce7cc558d4f387d44c7458a007;hp=c4c623aeb1dfe1f09eaaf37a5565e83c4b970112;hb=5be150361b3c836d9206941ba43f862df11466db;hpb=bca3db9e1ab94e469b01f7e994a5e095de5f88c4 diff --git a/www/ecrire/iterateur/data.php b/www/ecrire/iterateur/data.php index c4c623a..4bd93c4 100644 --- a/www/ecrire/iterateur/data.php +++ b/www/ecrire/iterateur/data.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -386,7 +386,7 @@ class IterateurDATA implements Iterator { if (preg_match(',^\.?([/\w]+)( DESC)?$,iS', ltrim($tri, '/'), $r)) { // tri par cle if ($r[1] == 'cle'){ - if (isset($r2) and $r[2]) + if (isset($r[2]) and $r[2]) krsort($this->tableau); else ksort($this->tableau);