From 70e11a6a18a3c848f40a95fcc36a666be1be4cb4 Mon Sep 17 00:00:00 2001 From: nikitasinelnikov Date: Mon, 22 Jul 2019 12:44:58 +0300 Subject: [PATCH] - small fixes; --- includes/um-short-functions.php | 6 +++++- templates/members-grid.php | 4 ++-- templates/profile/comments-single.php | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index 8779538d..d42ed97e 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -1284,7 +1284,11 @@ function um_get_display_name( $user_id ) { * @return mixed */ function um_members( $argument ) { - return UM()->members()->results[ $argument ]; + $result = null; + if ( isset( UM()->members()->results[ $argument ] ) ) { + $result = UM()->members()->results[ $argument ]; + } + return $result; } diff --git a/templates/members-grid.php b/templates/members-grid.php index 9a19e420..279eb927 100644 --- a/templates/members-grid.php +++ b/templates/members-grid.php @@ -11,7 +11,7 @@
- + options()->get( 'cover_thumb_sizes' ); @@ -144,7 +144,7 @@ } ?>
- fields()->get_label( $key ) ); ?>: + fields()->get_label( $key ); ?>:
shortcodes()->loop as $comment ) {