merge bufferapp

Signed-off-by: Eric Côté <ericcotelnu@gmail.com>
pull/235/head^2
Eric Côté 2015-01-20 00:05:38 +00:00
parent 15b0328f53
commit db91eb4ae6
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,7 @@ function dav_cron(&$a, &$b)
dav_include_files(); dav_include_files();
$r = q("SELECT * FROM %s%snotifications WHERE `notified` = 0 AND `alert_date` <= NOW()", CALDAV_SQL_DB, CALDAV_SQL_PREFIX); $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) { foreach ($r as $not) {
q("UPDATE %s%snotifications SET `notified` = 1 WHERE `id` = %d", CALDAV_SQL_DB, CALDAV_SQL_PREFIX, $not["id"]); 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"]); $event = q("SELECT * FROM %s%sjqcalendar WHERE `calendarobject_id` = %d", CALDAV_SQL_DB, CALDAV_SQL_PREFIX, $not["calendarobject_id"]);
@ -291,6 +292,7 @@ function dav_cron(&$a, &$b)
} }
} }
} }
}
/** /**