mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 13:21:10 +01:00
Id should be valid only over 1 in UserManagerDB.
This commit is contained in:
parent
6fdcd0e7c0
commit
144d519258
@ -67,7 +67,7 @@ Ref<QueryBuilder> UserManagerDB::get_query_builder() {
|
||||
}
|
||||
|
||||
Ref<User> UserManagerDB::_get_user(const int id) {
|
||||
if (id == 0) {
|
||||
if (id <= 0) {
|
||||
return Ref<User>();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user