Changeset:
        afb52fbd5e23
        
https://sourceforge.net/p/mrbs/hg-code/ci/afb52fbd5e2370052049e1cf2007df19d1bc0720
Author:
        Campbell Morrison <[email protected]>
Date:
        Sat Dec 19 14:56:41 2015 +0000
Log message:

Fixed issue with undefined variable

diffstat:

 web/edit_entry.php |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r f1368b72e879 -r afb52fbd5e23 web/edit_entry.php
--- a/web/edit_entry.php        Sat Dec 19 10:15:30 2015 +0000
+++ b/web/edit_entry.php        Sat Dec 19 14:56:41 2015 +0000
@@ -1261,6 +1261,14 @@
     // fields are disabled and the repeat type is not a monthly repeat
     if (!$disabled || ($rep_type == REP_MONTHLY))
     {
+      // If the existing repeat type is other than a monthly repeat, we'll
+      // need to define a default month type in case the user decides to change
+      // to a monthly repeat
+      if (!isset($month_type))
+      {
+        $month_type = REP_MONTH_ABSOLUTE;
+      }
+      
       echo "<fieldset class= \"rep_type_details js_none\" 
id=\"rep_monthly\">\n";
       echo "<legend></legend>\n";
       

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to