Skip to content

Commit

Permalink
Merge branch 'db-placeholders'. #26
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 2, 2015
2 parents e06d61d + 564d980 commit 4c939cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/eventum/class.notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -1618,13 +1618,13 @@ public static function getSubscribers($issue_id, $type = null, $min_role = null)
WHERE
sub_id = sbt_sub_id AND
sub_iss_id=?";
$params[] = $issue_id;
$params = array($issue_id);
if ($type) {
$stmt .= " AND\nsbt_type = ?";
$params[] = $type;
}
try {
$emails = DB_Helper::getInstance()->getAll($stmt, $type);
$emails = DB_Helper::getInstance()->getAll($stmt, $params);
} catch (DbException $e) {
return array();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/eventum/class.time_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static function getTimeSpentByIssues(&$result)
GROUP BY
ttr_iss_id";
try {
$res = DB_Helper::getInstance()->fetchAssoc($stmt, false, $ids);
$res = DB_Helper::getInstance()->fetchAssoc($stmt, $ids);
} catch (DbException $e) {
return;
}
Expand Down

0 comments on commit 4c939cc

Please sign in to comment.