[SPIP] ~v3.2.4-->v3.2.5
[lhc/web/www.git] / www / ecrire / plugins / afficher_plugin.php
index 45ca240..163170e 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2017                                                *
+ *  Copyright (c) 2001-2019                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -69,7 +69,7 @@ function plugins_afficher_plugin_dist(
        }
 
        // numerotons les occurrences d'un meme prefix
-       $versions[$prefix] = $id = isset($versions[$prefix]) ? $versions[$prefix] + 1 : '';
+       $versions[$prefix] = $id = isset($versions[$prefix]) ? intval($versions[$prefix]) + 1 : '';
 
        $class_li .= ($actif ? " actif" : "") . ($expose ? " on" : "");