[SPIP] v3.2.1-->v3.2.3
[lhc/web/www.git] / www / plugins-dist / statistiques / inc / referenceurs.php
index 80a78f9..d0d40b2 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2016                                                *
+ *  Copyright (c) 2001-2019                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -103,7 +103,7 @@ function stats_show_keywords($kw_referer) {
                                                $keywords = isset($Tquery[$v]) ? $Tquery[$v] : "";
 
                                                // Si on a defini le nom de la variable en expression reguliere, chercher la bonne variable
-                                               if (!empty($keywords) AND !strlen($keywords) > 0) {
+                                               if (!strlen($keywords) > 0) {
                                                        if (preg_match("," . $arr_engines[$cnt][1] . "([^\&]*),", $query, $vals)) {
                                                                $keywords = urldecode($vals[2]);
                                                        }