fixed a wrong check in loading user settings in the user controll
This commit is contained in:
parent
c703d151d1
commit
3fab2b34ea
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user