summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/concert.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/includes/concert.php b/includes/concert.php
index 100861e..162291d 100644
--- a/includes/concert.php
+++ b/includes/concert.php
@@ -160,22 +160,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) {
return $need_update;
}
- // Table to translate from filter keys to db columns used by
- // find_Concerts
- private function translate_key($key) : string
- {
- return [
- 'id' => 'id',
- 'name' => 'wpgconcert_name',
- 'date' => 'wpgconcert_date',
- 'venue_id' => $wpdb->prefix . 'giglogadmin_venues.id',
- 'venue' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_name',
- 'city' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_city',
- 'currentuser' => 'wpgconcert_roles',
- ][$key];
- }
-
- private static function _build_query(array $filter = [], $count = false) : string
+ private static function _build_query(array $filter = [], bool $count = false) : string
{
global $wpdb;