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; break;
} }
$sqlIssueTable = Pluf::factory('IDF_Issue')->getSqlTable(); $sqlIssueTable = Pluf::factory('IDF_Issue')->getSqlTable();
$query = <<<"QUERY" $query = "SELECT uid AS id,COUNT(uid) AS nb
SELECT uid AS id,COUNT(uid) AS nb
FROM ( FROM (
SELECT COALESCE(owner, -1) AS uid SELECT COALESCE(owner, -1) AS uid
FROM $sqlIssueTable FROM $sqlIssueTable
WHERE status IN ($tags) WHERE status IN ($tags)
) AS ff ) AS ff
GROUP BY uid GROUP BY uid"
QUERY;
$db = Pluf::db(); $db = Pluf::db();
$dbData = $db->select($query); $dbData = $db->select($query);
$ownerStatistics = array(); $ownerStatistics = array();