X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fhooks.inc.php;h=c08c983d48a317290e9c6e4029b979ba0841e44d;hb=00ba8a742be0cfc70eef7c6aaaccebe7134ec087;hp=9402337284be840f56d992f3e2b6a34960b7577d;hpb=e46cf8c46341b447cc3701c8afcc9baec3da11e5;p=platal.git diff --git a/include/banana/hooks.inc.php b/include/banana/hooks.inc.php index 9402337..c08c983 100644 --- a/include/banana/hooks.inc.php +++ b/include/banana/hooks.inc.php @@ -1,6 +1,6 @@ token . '/rss.xml'; } function hook_platalMessageLink($params) @@ -190,9 +191,9 @@ function hook_getXFace($headers) } if (isset($headers['x-face'])) { $user = User::getSilent($login); - $res = XDB::query('SELECT pf.uid + $res = XDB::query("SELECT pf.uid FROM forum_profiles AS pf - WHERE pf.uid = {?} AND FIND_IN_SET(\'xface\', pf.flags)', + WHERE pf.uid = {?} AND FIND_IN_SET('xface', pf.flags)", $user->id()); if ($res->numRows()) { // User wants his xface to be showed, fallback to default handler