fix user result check on user controller
This commit is contained in:
parent
3790818baf
commit
902a5852a4
|
@ -81,6 +81,12 @@ function user_controller() {
|
|||
|
||||
if (isset($_REQUEST['user_id'])) {
|
||||
$user_source = User($_REQUEST['user_id']);
|
||||
if ($user_source === false)
|
||||
engelsystem_error("Unable to load user.");
|
||||
if ($user_source == null) {
|
||||
error(_("User not found."));
|
||||
redirect('?');
|
||||
}
|
||||
} else
|
||||
$user_source = $user;
|
||||
|
||||
|
|
Loading…
Reference in New Issue