diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2015-01-23 11:51:37 (GMT) |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2015-01-23 11:51:37 (GMT) |
commit | 62b69dd961801ba7edd7ecbe14138687f3fcb845 (patch) | |
tree | c0ab5b4be8893954ddb452ea4d21609de291df14 /plugins/libcalendaring | |
parent | 5a3468ac13e55d793589ae833e7d9f4ccb30a54f (diff) | |
download | roundcubemail-plugins-kolab-62b69dd961801ba7edd7ecbe14138687f3fcb845.tar.gz |
When converting seconds to minutes set alarm to at least 1 minute
Otherwise alarms with seconds < 30 would be ignored.
Diffstat (limited to 'plugins/libcalendaring')
-rw-r--r-- | plugins/libcalendaring/libcalendaring.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php index 0f769b9..f1c4514 100644 --- a/plugins/libcalendaring/libcalendaring.php +++ b/plugins/libcalendaring/libcalendaring.php @@ -435,7 +435,7 @@ class libcalendaring extends rcube_plugin // convert seconds to minutes if ($seg[2] == 'S') { $seg[2] = 'M'; - $seg[1] = round($seg[1]/60); + $seg[1] = max(1, round($seg[1]/60)); } return array($seg[1], $m[1].$seg[2], $m[1].$seg[1].$seg[2], $m[1].$prefix.$seg[1].$seg[2]); |