diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-08-12 18:01:30 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-08-12 18:01:30 +0200 |
commit | 02308d17ed15cd633ba1fd5cab11994c42065121 (patch) | |
tree | da25f6a092f9cb174c86dc390f61e00b05c3c28f /inc/subscription.php | |
parent | a0519fdaeb59bd96d9071681a68c2dc1b646fc68 (diff) | |
download | rpg-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/subscription.php')
-rw-r--r-- | inc/subscription.php | 1 |
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"; |