View Issue Details

IDProjectCategoryView StatusLast Update
0028119mantisbtcode cleanuppublic2021-04-04 19:36
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0028119: Calling user_get_field() with non-existing user throws incorrect warning
Description

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

It should trigger an ERROR_USER_BY_ID_NOT_FOUND warning instead.

TagsNo tags attached.

Activities

Related Changesets

MantisBT: master 3426c5ea

2021-03-25 19:20:45

dregad

Details Diff
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
Affected Issues
0028119
mod - core/user_api.php Diff File