Fix a MySQL-ism (closes issue 628)

This commit is contained in:
Patrick Georgi 2011-03-09 01:37:41 +01:00 committed by Thomas Keller
parent 9b7691c1ae
commit 3e6527bab3

View File

@ -378,7 +378,7 @@ class IDF_Views
// Count members // Count members
$db =& Pluf::db(); $db =& Pluf::db();
$sql = "SELECT count(id) as `nb` FROM indefero_users WHERE first_name != '---'"; $sql = "SELECT count(id) as nb FROM indefero_users WHERE first_name != '---'";
$ret = $db->select ($sql); $ret = $db->select ($sql);
$forgestats['members'] = $ret[0]['nb']; $forgestats['members'] = $ret[0]['nb'];