Commit 2ead6bc6 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Fixed province lookup

parent 6c5beaab
......@@ -373,7 +373,8 @@ class Event
if(isset($json->venueProvince) && $json->venueProvince!='') {
include_once(SERVER_ROOT."/../classes/geo.php");
$geo = new Geo();
$prov = $geo->ProvinceGetByProvince($json->venueProvince);
$province = $db->SqlQuote($json->venueProvince);
$prov = $geo->ProvinceGetByProvince($province);
if(isset($prov['id_prov'])) {
$id_geo = $prov['id_prov'];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment