Changeset:
        5c160dbec435
        
https://sourceforge.net/p/mrbs/hg-code/ci/5c160dbec4352cbf543a0bd4f2edd471c6491095
Author:
        Campbell Morrison <[email protected]>
Date:
        Wed Jul 12 20:24:44 2017 +0100
Log message:

Fixed a problem with buttons not appearing if the user is logged in with a
username in a different case to the creator of the booking.

diffstat:

 web/view_entry.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r c6cd951e0a44 -r 5c160dbec435 web/view_entry.php
--- a/web/view_entry.php        Tue Jun 06 19:37:45 2017 +0100
+++ b/web/view_entry.php        Wed Jul 12 20:24:44 2017 +0100
@@ -109,7 +109,7 @@
   // approval AND sufficient time has passed since the last reminder
   // AND we want reminders in the first place
   if (($reminders_enabled) &&
-      ($user == $create_by) && 
+      (strcasecmp($user, $create_by) == 0) && 
       ($status & STATUS_AWAITING_APPROVAL) &&
       (working_time_diff(time(), $last_reminded) >= $reminder_interval))
   {
@@ -425,7 +425,7 @@
       }    
     }
     // Buttons for the owner of this booking
-    elseif ($user == $create_by)
+    elseif (strcasecmp($user, $create_by) == 0)
     {
       generateOwnerButtons($id, $series);
     }

------------------------------------------------------------------------------
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