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