From 4a91324b265572e225c2a1c0793f69d2e48b70c8 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 23 Jul 2015 19:25:51 +0100 Subject: [PATCH] fixed table name --- includes/polling/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index 6e2b2bc50..63668771f 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -429,7 +429,7 @@ function location_to_latlng($device) { if (!empty($device_location)) { $new_device_location = preg_replace("/ /","+",$device_location); // We have a location string for the device. - $loc = dbFetchRow("SELECT `lat`,`lng` FROM `location` WHERE `location`=? LIMIT 1", array($device_location)); + $loc = dbFetchRow("SELECT `lat`,`lng` FROM `locations` WHERE `location`=? LIMIT 1", array($device_location)); if (is_array($loc) === false) { // Grab data from which ever Geocode service we use. switch ($config['geoloc']['engine']) {