Revision: 1661
http://mrbs.svn.sourceforge.net/mrbs/?rev=1661&view=rev
Author: cimorrison
Date: 2010-12-02 11:49:07 +0000 (Thu, 02 Dec 2010)
Log Message:
-----------
Tidied code. No functional change.
Modified Paths:
--------------
mrbs/branches/ics_attachments/web/edit_entry_handler.php
Modified: mrbs/branches/ics_attachments/web/edit_entry_handler.php
===================================================================
--- mrbs/branches/ics_attachments/web/edit_entry_handler.php 2010-12-02
11:22:31 UTC (rev 1660)
+++ mrbs/branches/ics_attachments/web/edit_entry_handler.php 2010-12-02
11:49:07 UTC (rev 1661)
@@ -405,22 +405,20 @@
$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
+$rep_opt = "";
+
+// Processing for weekly and n-weekly repeats
if (isset($rep_type) && (($rep_type == REP_WEEKLY) || ($rep_type ==
REP_N_WEEKLY)))
{
+ // If 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 (count($rep_day) == 0)
{
$start_day = date('w', $starttime);
$rep_day[$start_day] = TRUE;
}
-}
-
-// For weekly and n-weekly repeats, build string of weekdays to repeat on:
-$rep_opt = "";
-if (($rep_type == REP_WEEKLY) || ($rep_type == REP_N_WEEKLY))
-{
+
+ // Build string of weekdays to repeat on:
for ($i = 0; $i < 7; $i++)
{
$rep_opt .= empty($rep_day[$i]) ? "0" : "1"; // $rep_opt is a string
@@ -444,7 +442,6 @@
}
}
-
// Expand a series into a list of start times:
if ($rep_type != REP_NONE)
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits