]> git.mxchange.org Git - friendica-addons.git/commitdiff
merge bufferapp
authorEric Côté <ericcotelnu@gmail.com>
Tue, 20 Jan 2015 00:05:38 +0000 (00:05 +0000)
committerEric Côté <ericcotelnu@gmail.com>
Tue, 20 Jan 2015 00:05:38 +0000 (00:05 +0000)
Signed-off-by: Eric Côté <ericcotelnu@gmail.com>
dav/friendica/main.php

index 0fe939ebbd47d38b4eaa72d76865bab36fae0911..1025a7866704174e1952c3baa763c26578575618 100644 (file)
@@ -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;
                }
        }
+    }
 }