[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/calendar index.php, 1.33, 1.34

Dirk Haun dhaun at qs1489.pair.com
Thu May 22 09:24:01 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/calendar
In directory qs1489.pair.com:/tmp/cvs-serv32370/public_html/admin/plugins/calendar

Modified Files:
	index.php 
Log Message:
E_ALL fix: start_ampm/end_ampm aren't set in 24 hour mode


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/calendar/index.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** index.php	19 Apr 2008 15:05:34 -0000	1.33
--- index.php	22 May 2008 13:23:59 -0000	1.34
***************
*** 595,600 ****
      }
      $hour_mode = 12;
!     if (isset ($_POST['hour_mode']) && ($_POST['hour_mode'] == 24)) {
          $hour_mode = 24;
      }
      $display .= CALENDAR_saveEvent (COM_applyFilter ($_POST['eid']),
--- 595,605 ----
      }
      $hour_mode = 12;
!     if (isset($_POST['hour_mode']) && ($_POST['hour_mode'] == 24)) {
          $hour_mode = 24;
+     }
+     if ($hour_mode == 24) {
+         // these aren't set in 24 hour mode
+         $_POST['start_ampm'] = '';
+         $_POST['end_ampm'] = '';
      }
      $display .= CALENDAR_saveEvent (COM_applyFilter ($_POST['eid']),




More information about the geeklog-cvs mailing list