summaryrefslogtreecommitdiffstats
path: root/includes/concert.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/concert.php')
-rw-r--r--includes/concert.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/concert.php b/includes/concert.php
index 8aec96a..fed48a5 100644
--- a/includes/concert.php
+++ b/includes/concert.php
@@ -127,7 +127,7 @@ if ( ! class_exists( 'GiglogAdmin_Concert' ) ) {
$concert->save();
- return $concert;
+ return self::get( $concert->id() );
}
}
@@ -222,16 +222,16 @@ if ( ! class_exists( 'GiglogAdmin_Concert' ) ) {
case 'month':
case 'venue':
case 'city':
- array_push( $where, $wpdb->prepare( '%s=%s', $keymap[ $key ], $value ) );
+ array_push( $where, $keymap[ $key ] . $wpdb->prepare( '=%s', $value ) );
break;
case 'id':
case 'venue_id':
- array_push( $where, $wpdb->prepare( '%s=%d', $keymap[ $key ], $value ) );
+ array_push( $where, $keymap[ $key ] . $wpdb->prepare( '=%d', $value ) );
break;
case 'currentuser':
- array_push( $where, $wpdb->prepare( '%s like %s', $keymap[ $key ], esc_like( $value ) ) );
+ array_push( $where, $keymap[ $key ] . $wpdb->prepare( ' like %s', esc_like( $value ) ) );
break;
case 'offset':