Revision: 1206
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1206&view=rev
Author:   cimorrison
Date:     2009-09-27 17:14:14 +0000 (Sun, 27 Sep 2009)

Log Message:
-----------
Further simplified the code in getPreviousEntryData().   No functional change 
to MRBS.

Modified Paths:
--------------
    mrbs/trunk/web/functions_mail.inc

Modified: mrbs/trunk/web/functions_mail.inc
===================================================================
--- mrbs/trunk/web/functions_mail.inc   2009-09-27 16:13:47 UTC (rev 1205)
+++ mrbs/trunk/web/functions_mail.inc   2009-09-27 17:14:14 UTC (rev 1206)
@@ -813,19 +813,8 @@
         $rep_day[3] = $row['rep_opt'][3] != "0";
         $rep_day[4] = $row['rep_opt'][4] != "0";
         $rep_day[5] = $row['rep_opt'][5] != "0";
-        $rep_day[6] = $row['rep_opt'][6] != "0";
-
-        if ($row['rep_type'] == 6)
-        {
-          $mail_previous['rep_num_weeks'] = $row['rep_num_weeks'];
-        }
-        else
-        {
-          $mail_previous['rep_num_weeks'] = "";
-        }
-          
-        break;
-      
+        $rep_day[6] = $row['rep_opt'][6] != "0";     
+        break; 
       default:
         $rep_day = array(0, 0, 0, 0, 0, 0, 0);
     }
@@ -835,8 +824,15 @@
       if ($rep_day[$wday])
         $mail_previous['rep_opt'] .= day_name($wday) . " ";
     }
-         
-    $mail_previous['rep_num_weeks'] = $row['rep_num_weeks'];
+    
+    if ($row['rep_type'] == 6)
+    {
+      $mail_previous['rep_num_weeks'] = $row['rep_num_weeks'];
+    }
+    else
+    {
+      $mail_previous['rep_num_weeks'] = "";
+    }   
   }
   
   // return entry previous data as an array


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to