<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
}
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
function run_banana(&$page, $class, array $args)
{
- $user =& S::user();
+ $user = S::user();
$banana = new $class($user, $args);
$page->assign('banana', $banana->run());
$page->addCssInline($banana->css());