Fixes to support older PHP versions.

This commit is contained in:
Loïc d'Anterroches 2011-06-29 14:30:17 +02:00
parent 9bbcd571ec
commit dd3fbbd7e4

View File

@ -152,15 +152,14 @@ class IDF_Project extends Pluf_Model
break;
}
$sqlIssueTable = Pluf::factory('IDF_Issue')->getSqlTable();
$query = <<<"QUERY"
SELECT uid AS id,COUNT(uid) AS nb
$query = "SELECT uid AS id,COUNT(uid) AS nb
FROM (
SELECT COALESCE(owner, -1) AS uid
FROM $sqlIssueTable
WHERE status IN ($tags)
) AS ff
GROUP BY uid
QUERY;
GROUP BY uid"
$db = Pluf::db();
$dbData = $db->select($query);
$ownerStatistics = array();