projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/master' into account
[platal.git]
/
include
/
banana
/
hooks.inc.php
diff --git
a/include/banana/hooks.inc.php
b/include/banana/hooks.inc.php
index
9402337
..
cd96304
100644
(file)
--- a/
include/banana/hooks.inc.php
+++ b/
include/banana/hooks.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-190,9
+190,9
@@
function hook_getXFace($headers)
}
if (isset($headers['x-face'])) {
$user = User::getSilent($login);
}
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
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
$user->id());
if ($res->numRows()) {
// User wants his xface to be showed, fallback to default handler