We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4fd097 commit 6e201adCopy full SHA for 6e201ad
classes/patreon_wordpress.php
@@ -2806,8 +2806,11 @@ public function make_user_select( $selected_user = 1 ) {
2806
if ( !$existing_author_found ) {
2807
2808
$existing_author = get_user_by( 'ID', $selected_user );
2809
- $select .= '<option value="' . $existing_author->data->ID . '" selected>'. $existing_author->data->user_nicename . ' (' . $existing_author->data->display_name .')</option>';
2810
+ if ( $existing_author ) {
2811
+
2812
+ $select .= '<option value="' . $existing_author->data->ID . '" selected>'. $existing_author->data->user_nicename . ' (' . $existing_author->data->display_name .')</option>';
2813
+ }
2814
}
2815
2816
0 commit comments