Changeset:
be2f221cd7ce
https://sourceforge.net/p/mrbs/hg-code/ci/be2f221cd7ce485db7d989138a5994f73a0bd076
Author:
Campbell Morrison <[email protected]>
Date:
Wed Dec 30 10:37:47 2015 +0000
Log message:
Fixed potential bug when getWritable() makes use of the $room parameter
diffstat:
web/functions_table.inc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 9afad0b9a784 -r be2f221cd7ce web/functions_table.inc
--- a/web/functions_table.inc Tue Dec 22 14:46:42 2015 +0000
+++ b/web/functions_table.inc Wed Dec 30 10:37:47 2015 +0000
@@ -463,8 +463,8 @@
// $c is the colour of the cell that the browser sees. Zebra stripes
normally,
// row_highlight if we're highlighting that line and the appropriate
colour if
// it is booked (determined by the type).
- // We tell if its booked by $id having something in it
- if (isset($id))
+ // We tell if its booked by $id and $descr having something in them
+ if (isset($id) && isset($descr))
{
$c = $color;
if ($status & STATUS_PRIVATE)
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits