Id should be valid only over 1 in UserManagerDB.

This commit is contained in:
Relintai 2022-12-18 18:42:09 +01:00
parent 6fdcd0e7c0
commit 144d519258

View File

@ -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>();
}