diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-04-15 00:50:30 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-04-15 00:50:30 +0200 |
commit | 0420c538c92e1351c1fbf145a6dd12f8e1be6e1a (patch) | |
tree | b80bb932eef667511ebcc5f05bb27654fc614f16 /includes/venue.php | |
parent | 96fbcbc6a915fc284a6a07de6696be66ef5cecb2 (diff) | |
download | gigologadmin-0420c538c92e1351c1fbf145a6dd12f8e1be6e1a.tar.gz gigologadmin-0420c538c92e1351c1fbf145a6dd12f8e1be6e1a.tar.bz2 gigologadmin-0420c538c92e1351c1fbf145a6dd12f8e1be6e1a.zip |
Fix prepare call in Venue::venues_in_city.
Diffstat (limited to 'includes/venue.php')
-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); |