[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11603] booking: method related to php
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11603] booking: method related to php |
Date: |
Fri, 17 Jan 2014 13:43:56 +0000 |
Revision: 11603
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11603
Author: sigurdne
Date: 2014-01-17 13:43:55 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
booking: method related to php
Modified Paths:
--------------
trunk/booking/inc/class.bobooking.inc.php
Modified: trunk/booking/inc/class.bobooking.inc.php
===================================================================
--- trunk/booking/inc/class.bobooking.inc.php 2014-01-16 19:26:13 UTC (rev
11602)
+++ trunk/booking/inc/class.bobooking.inc.php 2014-01-17 13:43:55 UTC (rev
11603)
@@ -407,7 +407,8 @@
break;
}
- if($date->getTimestamp() >
$end->getTimestamp())
+ // if($date->getTimestamp() >
$end->getTimestamp()) // > php 5.3.0
+ if($date->format("U") >
$end->format("U"))
{
throw new
InvalidArgumentException('start time( ' . $date->format('Y-m-d') . ' ) later
than end time( ' . $end->format('Y-m-d') . " ) for
{$booking['type']}#{$booking['id']}::{$booking['name']}");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11603] booking: method related to php,
Sigurd Nes <=