diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-04-21 20:04:39 +0200 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-04-21 20:04:39 +0200 |
commit | e90ad9756e709d173d6c1a52dcffcedc809749a2 (patch) | |
tree | b27362acd16f75adbd8a6ab2d94dd6d3b352e5cd /includes/admin | |
parent | 23da25c5f3594adabe3a4d4effe8bc0f4eca6832 (diff) | |
download | gigologadmin-e90ad9756e709d173d6c1a52dcffcedc809749a2.tar.gz gigologadmin-e90ad9756e709d173d6c1a52dcffcedc809749a2.tar.bz2 gigologadmin-e90ad9756e709d173d6c1a52dcffcedc809749a2.zip |
Added check if emty concert when fetching assigned user
Diffstat (limited to 'includes/admin')
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 ('<form method="POST" action=""> <input type="hidden" name="cid" value="' . $c. '" /><input type="hidden" name="pid" value="' . $p1. '" /><input type="submit" name="assignitem" value=""/> </form>'); } + } } } } |