Modified:
/trunk/plugin/head-start-exhibit.js.php
/trunk/plugin/wp-exhibit-geocoder.php
/trunk/plugin/wp-exhibit.php
=======================================
--- /trunk/plugin/head-start-exhibit.js.php Wed May 11 12:17:38 2011
+++ /trunk/plugin/head-start-exhibit.js.php Wed May 11 12:45:27 2011
@@ -57,6 +57,9 @@
if(obj != null) {
ret[item] = obj;
}
+ else {
+ ret[item] = "";
+ }
});
return ret;
}
=======================================
--- /trunk/plugin/wp-exhibit-geocoder.php Wed Mar 30 14:03:30 2011
+++ /trunk/plugin/wp-exhibit-geocoder.php Wed May 11 12:45:27 2011
@@ -41,7 +41,7 @@
static function lookup($exhibit_id, $address_field, $datum_id,
$address) {
global $wpdb;
$table =
WpExhibitConfig::table_name(WpExhibitConfig::$GEOCODE_TABLE_KEY);
- $query = "SELECT lat, lng FROM $table WHERE exhibit_id = %d AND
addressField = %s AND datum_id = %d AND address = %s";
+ $query = "SELECT lat, lng FROM $table WHERE exhibit_id = %d AND
addressField = %s AND datum_id = %s AND address = %s";
$query = $wpdb->prepare($query, $exhibit_id, $address_field,
$datum_id, $address);
$row = $wpdb->get_row($query, ARRAY_A);
if($row != NULL) {
=======================================
--- /trunk/plugin/wp-exhibit.php Thu Feb 24 05:13:21 2011
+++ /trunk/plugin/wp-exhibit.php Wed May 11 12:45:27 2011
@@ -240,5 +240,4 @@
wp_register_style( 'dp-template', "$wp_datapress_plugin_url/css/template.css");
include_once('facet_widget.php');
-
?>