[SPIP] ~maj 3.0.13 -> 3.0.14
[ptitvelo/web/www.git] / www / ecrire / iterateur / data.php
index c4c623a..4bd93c4 100644 (file)
@@ -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);