From 1c2b2909eb0c92e901e85ece5c8758ffdbf04c8f Mon Sep 17 00:00:00 2001 From: Nico Kaiser Date: Fri, 11 Oct 2013 21:41:04 +0200 Subject: Fix OC_User::getDisplayName to persist between (browser) sessions. Fixes #3694 --- lib/user.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/user.php b/lib/user.php index 55ffc26e77f..2ab580bb2e7 100644 --- a/lib/user.php +++ b/lib/user.php @@ -372,6 +372,8 @@ class OC_User { return self::determineDisplayName($user); } else if( isset($_SESSION['display_name']) AND $_SESSION['display_name'] ) { return $_SESSION['display_name']; + } else if ( $user = $this->getUser() ) { + return self::determineDisplayName($user); } else{ return false; -- cgit v1.2.3