From 3fab2b34eaf3df64a3cad9ab3c31fad39014bb2e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 13 Dec 2016 06:29:57 +0000 Subject: [PATCH] fixed a wrong check in loading user settings in the user controll --- codepot/src/codepot/controllers/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codepot/src/codepot/controllers/user.php b/codepot/src/codepot/controllers/user.php index ff787a4d..e13918b8 100644 --- a/codepot/src/codepot/controllers/user.php +++ b/codepot/src/codepot/controllers/user.php @@ -56,7 +56,7 @@ class User extends Controller $user->xid = $this->converter->AsciiToHex($user->id); $user->summary = ''; $settings = $this->users->fetchSettings ($user->id); - if ($settings !== FALSE) $user->summary = $settings->user_summary; + if ($settings !== FALSE && $settings !== NULL) $user->summary = $settings->user_summary; $projects = $this->projects->getMyProjects ($userid); @@ -106,7 +106,7 @@ class User extends Controller $user->xid = $this->converter->AsciiToHex($user->id); $user->summary = ''; $settings = $this->users->fetchSettings ($user->id); - if ($settings !== FALSE) $user->summary = $settings->user_summary; + if ($settings !== FALSE && $settings !== NULL) $user->summary = $settings->user_summary; $myprojs = $this->projects->getMyProjects ($user->id); if ($myprojs === FALSE) @@ -191,7 +191,7 @@ class User extends Controller $user->xid = $this->converter->AsciiToHex($user->id); $user->summary = ''; $settings = $this->users->fetchSettings ($user->id); - if ($settings !== FALSE) $user->summary = $settings->user_summary; + if ($settings !== FALSE && $settings !== NULL) $user->summary = $settings->user_summary; $icon_fname = FALSE; $uploaded_fname = FALSE;