aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/ping.php6
-rw-r--r--version.inc2
2 files changed, 5 insertions, 3 deletions
diff --git a/mod/ping.php b/mod/ping.php
index c69f42a6f..6a89ad5cf 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -173,8 +173,10 @@ function ping_init(&$a) {
);
break;
case 'all_events':
- $r = q("update event set `ignore` = 1 where `ignore` = 0 and uid = %d",
- intval(local_channel())
+ $r = q("update event set `ignore` = 1 where `ignore` = 0 and uid = %d AND start < '%s' AND start > '%s' ",
+ intval(local_channel()),
+ dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now + ' . intval($evdays) . ' days')),
+ dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now - 1 days'))
);
break;
case 'notify':
diff --git a/version.inc b/version.inc
index f8cfd0a25..62703f886 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-02-06.937
+2015-02-08.939