Changeset:
        24aed4a02c78
        
https://sourceforge.net/p/mrbs/hg-code/ci/24aed4a02c78086a82b53f83d08bfcdbe184bfe9
Author:
        Campbell Morrison <[email protected]>
Date:
        Sat Mar 11 09:04:55 2017 +0000
Log message:

Fixed problem of '&nbsp;' appearing in period description in slot selector.

diffstat:

 web/edit_entry.php |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 4af65c950230 -r 24aed4a02c78 web/edit_entry.php
--- a/web/edit_entry.php        Fri Mar 10 17:18:57 2017 +0000
+++ b/web/edit_entry.php        Sat Mar 11 09:04:55 2017 +0000
@@ -175,8 +175,14 @@
   }
   for ($s = $area['first']; $s <= $last; $s += $area['resolution'])
   {
-    $slot_string = ($area['enable_periods']) ? $periods[intval(($s-$base)/60)] 
: hour_min($s);
-    $options[$s] = $slot_string;
+    if ($area['enable_periods'])
+    {
+      $options[$s] = mrbs_entity_decode($periods[intval(($s-$base)/60)]);
+    }
+    else
+    {
+      $options[$s] = hour_min($s);
+    }
   }
 
   // If $display_none or $disabled are set then we'll also disable the select 
so

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to