From db91eb4ae6ab0a3c9fb0627f0bb405aac70a0440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20C=C3=B4t=C3=A9?= Date: Tue, 20 Jan 2015 00:05:38 +0000 Subject: [PATCH] merge bufferapp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Côté --- dav/friendica/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dav/friendica/main.php b/dav/friendica/main.php index 0fe939ebb..1025a7866 100644 --- a/dav/friendica/main.php +++ b/dav/friendica/main.php @@ -253,6 +253,7 @@ function dav_cron(&$a, &$b) dav_include_files(); $r = q("SELECT * FROM %s%snotifications WHERE `notified` = 0 AND `alert_date` <= NOW()", CALDAV_SQL_DB, CALDAV_SQL_PREFIX); + if (is_array($r)) { foreach ($r as $not) { q("UPDATE %s%snotifications SET `notified` = 1 WHERE `id` = %d", CALDAV_SQL_DB, CALDAV_SQL_PREFIX, $not["id"]); $event = q("SELECT * FROM %s%sjqcalendar WHERE `calendarobject_id` = %d", CALDAV_SQL_DB, CALDAV_SQL_PREFIX, $not["calendarobject_id"]); @@ -290,6 +291,7 @@ function dav_cron(&$a, &$b) break; } } + } }