diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/venue.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/venue.php b/includes/venue.php index 1b3d79b..850aaa0 100644 --- a/includes/venue.php +++ b/includes/venue.php @@ -75,7 +75,7 @@ if ( !class_exists('GiglogAdmin_Venue') ) { { global $wpdb; $q = $wpdb->prepare( - "select id, wpgvenue_name from wpg_venues where wpgvenue_city=?", $city); + "select id, wpgvenue_name from wpg_venues where wpgvenue_city=%s", $city); $results = $wpdb->get_results($q); return array_map(function ($r) { return new GiglogAdmin_Venue($r); }, $results); |