plugins/libcalendaring
Aleksander Machniak
machniak at kolabsys.com
Fri Jan 23 13:17:18 CET 2015
plugins/libcalendaring/libcalendaring.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 62b69dd961801ba7edd7ecbe14138687f3fcb845
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Fri Jan 23 06:51:37 2015 -0500
When converting seconds to minutes set alarm to at least 1 minute
Otherwise alarms with seconds < 30 would be ignored.
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]);
More information about the commits
mailing list