Revision: 1238
http://mrbs.svn.sourceforge.net/mrbs/?rev=1238&view=rev
Author: cimorrison
Date: 2009-11-03 14:25:31 +0000 (Tue, 03 Nov 2009)
Log Message:
-----------
Fixed bug introduced in Rev 1237 that caused n-weekly repeats to get stuck in
an infinite loop (the code assumes that at least one repeat day has been set).
Revision Links:
--------------
http://mrbs.svn.sourceforge.net/mrbs/?rev=1237&view=rev
Modified Paths:
--------------
mrbs/trunk/web/edit_entry_handler.php
Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php 2009-11-02 15:00:14 UTC (rev
1237)
+++ mrbs/trunk/web/edit_entry_handler.php 2009-11-03 14:25:31 UTC (rev
1238)
@@ -304,6 +304,18 @@
$rep_day = array();
}
+// If there's a weekly or n-weekly repeat and no repeat day has
+// been set, then set a default repeat day as the day of
+// the week of the start of the period
+if (isset($rep_type) && (($rep_type == 2) || ($rep_type == 6)))
+{
+ if (count($rep_day) == 0)
+ {
+ $start_day = date('w', $starttime);
+ $rep_day[$start_day] = TRUE;
+ }
+}
+
// For weekly repeat(2), build string of weekdays to repeat on:
$rep_opt = "";
if (($rep_type == 2) || ($rep_type == 6))
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits