Changeset:
        76d9c6b86f02
        
https://sourceforge.net/p/mrbs/hg-code/ci/76d9c6b86f02813b0b92a3d138caf87300c6e057
Author:
        Campbell Morrison <[email protected]>
Date:
        Thu Apr 13 12:38:10 2017 +0100
Log message:

Fixed bug causing an error on the edit_entry page when using periods when the
times settings fall within certain bounds.

diffstat:

 web/functions.inc |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 4b175e59a81b -r 76d9c6b86f02 web/functions.inc
--- a/web/functions.inc Wed Apr 12 10:59:52 2017 +0100
+++ b/web/functions.inc Thu Apr 13 12:38:10 2017 +0100
@@ -626,7 +626,12 @@
 {
   global $morningstarts, $morningstarts_minutes,
          $eveningends, $eveningends_minutes,
-         $resolution;
+         $resolution, $enable_periods;
+  
+  if ($enable_periods)
+  {
+    return true;
+  }
   
   $start_day_secs = (($morningstarts * 60) + $morningstarts_minutes) * 60;
   $end_day_secs = (((($eveningends * 60) + $eveningends_minutes) * 60) + 
$resolution) % SECONDS_PER_DAY;

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to