summaryrefslogtreecommitdiff
path: root/plugins/tasklist/drivers
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-26 13:57:54 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-26 14:02:16 (GMT)
commitc7b422907ed6ecf218b819fb4b617165862b4b6f (patch)
treebb46329af1c8bc82082a4e44b0635262f3f3ceef /plugins/tasklist/drivers
parent0e40a59ae287464679d0ad9c78cbcf0ef5f08648 (diff)
downloadroundcubemail-plugins-kolab-c7b422907ed6ecf218b819fb4b617165862b4b6f.tar.gz
Use rcube_db::table_name() for SQL database access
Diffstat (limited to 'plugins/tasklist/drivers')
-rw-r--r--plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
index f340b42..253cb62 100644
--- a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
+++ b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
@@ -700,7 +700,7 @@ class tasklist_kolab_driver extends tasklist_driver
if (!empty($candidates)) {
$alarm_ids = array_map(array($this->rc->db, 'quote'), array_keys($candidates));
$result = $this->rc->db->query(sprintf(
- "SELECT * FROM kolab_alarms
+ "SELECT * FROM " . $this->rc->db->table_name('kolab_alarms') . "
WHERE alarm_id IN (%s) AND user_id=?",
join(',', $alarm_ids),
$this->rc->db->now()
@@ -739,7 +739,7 @@ class tasklist_kolab_driver extends tasklist_driver
{
// delete old alarm entry
$this->rc->db->query(
- "DELETE FROM kolab_alarms
+ "DELETE FROM " . $this->rc->db->table_name('kolab_alarms') . "
WHERE alarm_id=? AND user_id=?",
$id,
$this->rc->user->ID
@@ -749,7 +749,7 @@ class tasklist_kolab_driver extends tasklist_driver
$notifyat = $snooze > 0 ? date('Y-m-d H:i:s', time() + $snooze) : null;
$query = $this->rc->db->query(
- "INSERT INTO kolab_alarms
+ "INSERT INTO " . $this->rc->db->table_name('kolab_alarms') . "
(alarm_id, user_id, dismissed, notifyat)
VALUES(?, ?, ?, ?)",
$id,
@@ -770,7 +770,7 @@ class tasklist_kolab_driver extends tasklist_driver
{
// delete alarm entry
$this->rc->db->query(
- "DELETE FROM kolab_alarms
+ "DELETE FROM " . $this->rc->db->table_name('kolab_alarms') . "
WHERE alarm_id=? AND user_id=?",
$id,
$this->rc->user->ID