From a481031a2d6b5f0de9010e46bfc6f7d2f6c88ca9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Aug 2014 19:30:19 +0000 Subject: [PATCH] fixed sql error "argument of AND must be type boolean, not type integer" --- phpgwapi/inc/class.asyncservice.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.asyncservice.inc.php b/phpgwapi/inc/class.asyncservice.inc.php index 18c8d26d0d..354f49123a 100644 --- a/phpgwapi/inc/class.asyncservice.inc.php +++ b/phpgwapi/inc/class.asyncservice.inc.php @@ -377,7 +377,7 @@ class asyncservice ); // as the async_next column is used as a semaphore we only update it, // if it is 0 (semaphore released) or older then 10min to recover from failed or crashed attempts - if ($exists) $where = array('async_next=0 OR async_next<'.time()-600); + if ($exists) $where = array('async_next=0 OR async_next<'.(time()-600)); } //echo "last_run=
"; print_r($last_run); echo "
\n"; return $this->write($last_run, !!$exists, $where) > 0;