Removed ability to edit Anonymous Users DB-Entry to prevent change of Userlvl or screwing other things up.
This commit is contained in:
parent
64be484635
commit
b97d430783
|
@ -102,7 +102,7 @@ class UserController extends AbstractController
|
|||
|
||||
$users = $this->db->select(
|
||||
PSM_DB_PREFIX . 'users',
|
||||
null,
|
||||
'user_id > 0',
|
||||
array('user_id', 'user_name', 'level', 'name', 'mobile', 'email'),
|
||||
null,
|
||||
array('name')
|
||||
|
|
|
@ -435,7 +435,7 @@ class Database
|
|||
}
|
||||
$query = substr($query, 0, -5);
|
||||
} else {
|
||||
if (strpos($where, '=') === false) {
|
||||
if ((strpos($where, '=') === false ) && (strpos($where, '>') === false) && (strpos($where, '<') === false)) {
|
||||
// no field given, use primary field
|
||||
$primary = $this->getPrimary($table);
|
||||
$query .= " WHERE `{$table}`.`{$primary}`={$this->quote($where)}";
|
||||
|
|
Loading…
Reference in New Issue