From 8486f9d85dfb7c0aaac42acf58a24cb863925d28 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 Oct 2012 16:33:28 +0200 Subject: [PATCH] Fix: missing spaces --- htdocs/categories/class/categorie.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 07bf4cac7b8..fbc53dbdef7 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -1006,7 +1006,7 @@ class Categorie */ function rechercher($id, $nom, $type, $exact = false, $case = false) { - $cats = array (); + $cats = array(); // Generation requete recherche $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."categorie"; @@ -1017,13 +1017,13 @@ class Categorie if (! $exact) $nom = '%'.str_replace('*', '%', $nom).'%'; if (! $case) - $sql.= "AND label LIKE '".$this->db->escape($nom)."'"; + $sql.= " AND label LIKE '".$this->db->escape($nom)."'"; else - $sql.= "AND label LIKE BINARY '".$this->db->escape($nom)."'"; + $sql.= " AND label LIKE BINARY '".$this->db->escape($nom)."'"; } if ($id) { - $sql.="AND rowid = '".$id."'"; + $sql.=" AND rowid = '".$id."'"; } $res = $this->db->query($sql);