MantisBT: master 3426c5ea

Author Committer Branch Timestamp Parent
dregad dregad master 2021-03-25 15:20 master bff36aff
Affected Issues  0028119: Calling user_get_field() with non-existing user throws incorrect warning
Changeset

Correct user_get_field() warning for invalid user id

When user_get_field() was called with a non-existing user id, it threw
an ERROR_DB_FIELD_NOT_FOUND warning, which is incorrect and misleading.

It now triggers an ERROR_USER_BY_ID_NOT_FOUND warning instead.

Fixes 0028119

mod - core/user_api.php Diff File