From 2ce36e5a26c0040203ff5c32fdd5e3546a3695f4 Mon Sep 17 00:00:00 2001 From: Brian DiChiara <122309362+bd-viget@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:18:59 -0500 Subject: [PATCH] [N/A] Admin > Users Bug Fix (#814) --- .../goodbids/src/classes/Users/Referrals/Admin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client-mu-plugins/goodbids/src/classes/Users/Referrals/Admin.php b/client-mu-plugins/goodbids/src/classes/Users/Referrals/Admin.php index b3db4120..a98414e8 100644 --- a/client-mu-plugins/goodbids/src/classes/Users/Referrals/Admin.php +++ b/client-mu-plugins/goodbids/src/classes/Users/Referrals/Admin.php @@ -371,6 +371,10 @@ function ( array $columns ) { add_filter( 'manage_users_custom_column', function ( string $value, string $column, int $user_id ) { + if ( ! $user_id ) { + return '—'; + } + $referrer = new Referrer( $user_id ); if ( 'referral_count' === $column ) {