mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix SQL error from clearing cache during install
Invalid SQL: DELETE FROM egw_notificationpopup WHERE notify_type='push' AND notify_created <
This commit is contained in:
parent
849b94374b
commit
1cf91d150c
@ -109,12 +109,15 @@ class notifications_push implements Json\PushBackend
|
||||
* Delete push messges older then our heartbeat-limit (poll frequency of notifications)
|
||||
*/
|
||||
protected static function cleanup_push_msgs()
|
||||
{
|
||||
if (($ts = self::$db->from_unixtime(Api\Session::heartbeat_limit())))
|
||||
{
|
||||
self::$db->delete(self::TABLE, array(
|
||||
'notify_type' => self::TYPE,
|
||||
'notify_created < '.self::$db->from_unixtime(Api\Session::heartbeat_limit()),
|
||||
'notify_created < '.$ts,
|
||||
), __LINE__, __FILE__, self::APP);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Init our static variables eg. database object
|
||||
|
Loading…
Reference in New Issue
Block a user