From dd3fbbd7e47b7479c95f71cf1c3a182d5aff2ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20d=27Anterroches?= Date: Wed, 29 Jun 2011 14:30:17 +0200 Subject: [PATCH] Fixes to support older PHP versions. --- src/IDF/Project.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/IDF/Project.php b/src/IDF/Project.php index 14f66c7..ca1df1a 100644 --- a/src/IDF/Project.php +++ b/src/IDF/Project.php @@ -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();