fix user result check on user controller

This commit is contained in:
Philip Häusler 2015-12-05 11:55:35 +01:00
parent 3790818baf
commit 902a5852a4
1 changed files with 6 additions and 0 deletions

View File

@ -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;