Revision: 1531
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1531&view=rev
Author:   cimorrison
Date:     2010-10-22 10:03:13 +0000 (Fri, 22 Oct 2010)

Log Message:
-----------
Fixed parse error

Modified Paths:
--------------
    mrbs/branches/from_to_bookings/web/edit_entry_handler.php

Modified: mrbs/branches/from_to_bookings/web/edit_entry_handler.php
===================================================================
--- mrbs/branches/from_to_bookings/web/edit_entry_handler.php   2010-10-22 
09:15:37 UTC (rev 1530)
+++ mrbs/branches/from_to_bookings/web/edit_entry_handler.php   2010-10-22 
10:03:13 UTC (rev 1531)
@@ -322,8 +322,15 @@
   // (We do this before we adjust for DST so that the user sees what they 
expect to see)
   $duration = $endtime - $starttime;
   $date = getdate($starttime);
-  $period = ($date['hours'] - 12) * 60) + $date['minutes'];
-  $enable_periods ? toPeriodString($period, $duration, $dur_units, FALSE) : 
toTimeString($duration, $dur_units, FALSE);
+  if ($enable_periods)
+  {
+    $period = (($date['hours'] - 12) * 60) + $date['minutes'];
+    toPeriodString($period, $duration, $dur_units, FALSE);
+  }
+  else
+  {
+    toTimeString($duration, $dur_units, FALSE);
+  }
   
   // Adjust the endtime for DST
   $endtime += cross_dst( $starttime, $endtime );


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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to