Revision: 1020
http://mrbs.svn.sourceforge.net/mrbs/?rev=1020&view=rev
Author: jberanek
Date: 2009-02-14 23:31:22 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
* A couple of changes that should hopefully solve the reported problems
of a number in an SQL statement being in "engineering" format and
therefore causing an SQL error. First report was SF #1794351 I believe.
Modified Paths:
--------------
mrbs/trunk/web/edit_entry_handler.php
Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php 2009-02-14 22:18:17 UTC (rev
1019)
+++ mrbs/trunk/web/edit_entry_handler.php 2009-02-14 23:31:22 UTC (rev
1020)
@@ -206,7 +206,7 @@
}
// Units start in seconds
-$units = 1.0;
+$units = 1;
switch($dur_units)
{
@@ -267,7 +267,7 @@
is_dst($month, $day, $year, $hour));
$endtime = mktime($hour, $minute, 0,
$month, $day, $year,
- is_dst($month, $day, $year, $hour)) + ($units *
$duration);
+ is_dst($month, $day, $year, $hour)) + (int)($units *
$duration);
// Round up the duration to the next whole resolution unit.
// If they asked for 0 minutes, push that up to 1 resolution unit.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits