Fix publicity of entries in search_name table.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 7 Oct 2010 11:13:18 +0000 (13:13 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 7 Oct 2010 11:13:18 +0000 (13:13 +0200)
A full reindexation of the names must be performed during the upgrade.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/profile.php

index 0adc9d3..8b53e40 100644 (file)
@@ -1013,7 +1013,7 @@ class Profile
                             WHERE  pid = {?}',
                      $pid);
         $keys = XDB::iterator("SELECT  CONCAT(n.particle, n.name) AS name, e.score,
-                                       FIND_IN_SET('public', e.flags) AS public
+                                       IF(FIND_IN_SET('public', e.flags), 'public', '') AS public
                                  FROM  profile_name      AS n
                            INNER JOIN  profile_name_enum AS e ON (n.typeid = e.id)
                                 WHERE  n.pid = {?}",