summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-08-12 18:01:30 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-08-12 18:01:30 +0200
commit02308d17ed15cd633ba1fd5cab11994c42065121 (patch)
treeda25f6a092f9cb174c86dc390f61e00b05c3c28f /inc
parenta0519fdaeb59bd96d9071681a68c2dc1b646fc68 (diff)
downloadrpg-02308d17ed15cd633ba1fd5cab11994c42065121.tar.gz
rpg-02308d17ed15cd633ba1fd5cab11994c42065121.tar.bz2
initialize new subscriptions with current time
We don't want to create a bunch of mails whenever a namespace is subscribed. Only changes *after* the subscription should be considered. This patch adds the timestamp to "every" style subscriptions as well, though this data is ignored.
Diffstat (limited to 'inc')
-rw-r--r--inc/subscription.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/subscription.php b/inc/subscription.php
index 742f5b1a0..800329cb5 100644
--- a/inc/subscription.php
+++ b/inc/subscription.php
@@ -223,6 +223,7 @@ class Subscription {
if(!$user) throw new Exception('no subscription user given');
if(!$style) throw new Exception('no subscription style given');
+ if(!$data) $data = time(); //always add current time for new subscriptions
$line = "$user $style";
if($data) $line .= " $data";