Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Show 404 not found if the user does not exist

givanz062061b676d5
diff --git a/admin/controller/user/user.php b/admin/controller/user/user.php
index 793437b..5d8e5d1 100755
--- a/admin/controller/user/user.php
+++ b/admin/controller/user/user.php
@@ -45,6 +45,10 @@ class User extends Base {
$users = new $sqlModel();
$user = $users->get($options);
+ if (! $user) {
+ return $this->notFound(true, __('Page not found!'));
+ }
+
if (isset($user['password'])) {
//don't show password hash
unset($user['password']);