summaryrefslogtreecommitdiffstats
path: root/includes/admin
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-21 20:04:39 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-21 20:04:39 +0200
commite90ad9756e709d173d6c1a52dcffcedc809749a2 (patch)
treeb27362acd16f75adbd8a6ab2d94dd6d3b352e5cd /includes/admin
parent23da25c5f3594adabe3a4d4effe8bc0f4eca6832 (diff)
downloadgigologadmin-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.php4
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>');
}
+ }
}
}
}