From af0382ffb324078520c7cd85f3afbae51c20e5a2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 14 Apr 2016 21:30:36 +0000 Subject: [PATCH] Fix async services. Fixes calendar alarms disappearing. --- api/src/Asyncservice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Asyncservice.php b/api/src/Asyncservice.php index 12b0e9c51e..af2b8a813f 100644 --- a/api/src/Asyncservice.php +++ b/api/src/Asyncservice.php @@ -480,7 +480,7 @@ class Asyncservice */ function read($id=0,$cols='*',$offset=False,$append='ORDER BY async_next',$num_rows=0) { - if (!is_a($this->db, 'Db')) return false; + if (!is_a($this->db, 'EGroupware\\Api\\Db')) return false; if ($id === '%') { @@ -533,7 +533,7 @@ class Asyncservice */ function write($job, $exists = False, $where=array()) { - if (!is_a($this->db, 'Db')) return 0; + if (!is_a($this->db, 'EGroupware\\Api\\Db')) return 0; if (is_array($job['data']) && isset($job['data']['next']) && isset($job['next'])) $job['data']['next'] = $job['next']; $data = array(