This commit is contained in:
parent
cfa964b4c5
commit
35c496b187
@ -54,9 +54,13 @@ class User extends Model {
|
||||
$u = new User();
|
||||
$u->load($id);
|
||||
if($filtered===true)
|
||||
$users[$id] = $u->getDataFiltered();
|
||||
$thisdata = $u->getDataFiltered();
|
||||
else
|
||||
$users[$id] = $u->data;
|
||||
$thisdata = $u->data;
|
||||
|
||||
$thisdata['id'] = $id;
|
||||
|
||||
$users[] = $thisdata;
|
||||
}
|
||||
return $users;
|
||||
}
|
||||
|
@ -16,11 +16,11 @@ class Err extends Page {
|
||||
{
|
||||
$u = new User();
|
||||
$allusers = $u->getAll(false);
|
||||
foreach($allusers as $userid => $user)
|
||||
foreach($allusers as $user)
|
||||
{
|
||||
if($user['token'] && $user['token'] == $_COOKIE['token'])
|
||||
{
|
||||
$u->id = $userid;
|
||||
$u->id = $user['id'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user