summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Code/Dao
diff options
context:
space:
mode:
Diffstat (limited to 'demos/time-tracker/protected/App_Code/Dao')
-rw-r--r--demos/time-tracker/protected/App_Code/Dao/ReportsDao.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php b/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php
index 3e5b6456..15d0c2a3 100644
--- a/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php
+++ b/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php
@@ -72,6 +72,7 @@ class ReportsDao extends BaseDao
{
$sqlmap = $this->getSqlMap();
$ids = implode(',', array_map('intval', $projects));
+ $sqlmap->getDbConnection()->setActive(true); //db connection needs to be open for quoteString
$usernames = implode(',', array_map(array($sqlmap->getDbConnection(), 'quoteString'), $users));
$param['projects'] = $ids;