From e90ad9756e709d173d6c1a52dcffcedc809749a2 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Wed, 21 Apr 2021 20:04:39 +0200 Subject: Added check if emty concert when fetching assigned user --- includes/admin/views/giglog_admin_page.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/admin') diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index 9a59289..5662047 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -485,7 +485,8 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { global $wpdb; $hf_user = wp_get_current_user(); $hf_username = $hf_user->user_login; - + if (!empty($c)) + { //PHOTO1 if ($p1 == 'photo1') { @@ -551,6 +552,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { return ('
'); } + } } } } -- cgit v1.2.3