Changeset:
0ab691c6b12c
https://sourceforge.net/p/mrbs/hg-code/ci/0ab691c6b12cdd1cd971f10ec2c39c582e699b7d
Author:
Campbell Morrison <[email protected]>
Date:
Thu Feb 23 18:40:43 2017 +0000
Log message:
Fixed checking of return value of getUserName()
diffstat:
web/session/session_cookie.inc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r ef7604ce0988 -r 0ab691c6b12c web/session/session_cookie.inc
--- a/web/session/session_cookie.inc Tue Feb 21 11:52:32 2017 +0000
+++ b/web/session/session_cookie.inc Thu Feb 23 18:40:43 2017 +0000
@@ -300,8 +300,9 @@
{
$TargetURL = $TargetURL . "?" . $QUERY_STRING;
}
- $user=getUserName();
- if ($user != "")
+
+ $user = getUserName();
+ if (isset($user))
{
// words 'you are xxxx' becomes a link to the
// report page with only entries created by xxx. Past entries are not
------------------------------------------------------------------------------
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