fixed a wrong check in loading user settings in the user controll

This commit is contained in:
hyung-hwan 2016-12-13 06:29:57 +00:00
parent c703d151d1
commit 3fab2b34ea

View File

@ -56,7 +56,7 @@ class User extends Controller
$user->xid = $this->converter->AsciiToHex($user->id); $user->xid = $this->converter->AsciiToHex($user->id);
$user->summary = ''; $user->summary = '';
$settings = $this->users->fetchSettings ($user->id); $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); $projects = $this->projects->getMyProjects ($userid);
@ -106,7 +106,7 @@ class User extends Controller
$user->xid = $this->converter->AsciiToHex($user->id); $user->xid = $this->converter->AsciiToHex($user->id);
$user->summary = ''; $user->summary = '';
$settings = $this->users->fetchSettings ($user->id); $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); $myprojs = $this->projects->getMyProjects ($user->id);
if ($myprojs === FALSE) if ($myprojs === FALSE)
@ -191,7 +191,7 @@ class User extends Controller
$user->xid = $this->converter->AsciiToHex($user->id); $user->xid = $this->converter->AsciiToHex($user->id);
$user->summary = ''; $user->summary = '';
$settings = $this->users->fetchSettings ($user->id); $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; $icon_fname = FALSE;
$uploaded_fname = FALSE; $uploaded_fname = FALSE;