summaryrefslogtreecommitdiffstats
path: root/includes/concert.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-09-05 15:03:09 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-09-05 15:03:09 +0200
commit98909040a8dff9fb77f9e0a9acd0b9ce81236335 (patch)
tree3be5d93b369dcd9d3231d045a6afc2c5f8f96570 /includes/concert.php
parent88244b19533163564098057c75952deffc7dc13e (diff)
downloadgigologadmin-98909040a8dff9fb77f9e0a9acd0b9ce81236335.tar.gz
gigologadmin-98909040a8dff9fb77f9e0a9acd0b9ce81236335.tar.bz2
gigologadmin-98909040a8dff9fb77f9e0a9acd0b9ce81236335.zip
Fixed filter by your concerts
Added CSS and extra fromatting to table
Diffstat (limited to 'includes/concert.php')
-rw-r--r--includes/concert.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/concert.php b/includes/concert.php
index 8210b2d..f4d7e6b 100644
--- a/includes/concert.php
+++ b/includes/concert.php
@@ -217,6 +217,10 @@ if ( !class_exists('GiglogAdmin_Concert') ) {
array_push($where, 'wpg_venues.id = ' . $wpdb->prepare('%s', $filter["venue_id"]));
}
+ if ( isset( $filter["currentuser"] ) ) {
+ array_push($where , 'wpgconcert_roles like "%'.$filter["currentuser"].'%"');
+ }
+
if ( ! empty( $where ) ) {
$query .= 'WHERE ' . implode(' and ', $where);
}