View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0028119 | mantisbt | code cleanup | public | 2021-03-25 20:27 | 2023-10-31 16:32 | 
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Target Version | 2.26.0 | Fixed in Version | 2.26.0 | ||
| Summary | 0028119: 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. | ||||
| Tags | No tags attached. | ||||
| MantisBT: master 3426c5ea 2021-03-25 15:20 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 | ||
