summaryrefslogtreecommitdiffstats
path: root/includes/concert.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2022-02-11 09:54:30 +0100
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2022-02-11 09:54:30 +0100
commit5b26e3982846b637993622d9ad6de26ab9d352e6 (patch)
treed5e1985bc910cbeada7e38eff06fd5885e9499fe /includes/concert.php
parent1ceb9d3a96534f327fa59694c463c258040fe7fe (diff)
downloadgigologadmin-5b26e3982846b637993622d9ad6de26ab9d352e6.tar.gz
gigologadmin-5b26e3982846b637993622d9ad6de26ab9d352e6.tar.bz2
gigologadmin-5b26e3982846b637993622d9ad6de26ab9d352e6.zip
more pagination details fixes
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 a67364f..11949f7 100644
--- a/includes/concert.php
+++ b/includes/concert.php
@@ -201,6 +201,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) {
'id' => $wpdb->prefix . 'giglogadmin_concerts.id',
'name' => 'wpgconcert_name',
'date' => 'wpgconcert_date',
+ 'month'=> 'MONTH(wpgconcert_date)',
'venue_id' => $wpdb->prefix . 'giglogadmin_venues.id',
'venue' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_name',
'city' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_city',
@@ -213,6 +214,9 @@ if ( !class_exists('GiglogAdmin_Concert') ) {
switch ($key) {
case 'name':
case 'date':
+ case 'month':
+ array_push($where, $wpdb->prepare($keymap[$key] . '=%s', $value));
+ break;
case 'venue':
case 'city':
array_push($where, $wpdb->prepare($keymap[$key] . '=%s', $value));