We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f476eb commit ac9faadCopy full SHA for ac9faad
core/user_api.php
@@ -425,8 +425,7 @@ function user_get_row( $p_user_id ) {
425
*/
426
function user_get_field( $p_user_id, $p_field_name ) {
427
if( NO_USER == $p_user_id ) {
428
- trigger_error( 'user_get_field() for NO_USER', WARNING );
429
- return '@null@';
+ throw new MantisBT\Exception\User_By_UserID_Not_Found( array( $p_user_id ) );
430
}
431
432
$t_user = MantisUser::getByUserID( $p_user_id );
0 commit comments