Index: g-map/files/lib/data/gmap/GmapApi.class.php
===================================================================
--- g-map/files/lib/data/gmap/GmapApi.class.php (revision 1326)
+++ g-map/files/lib/data/gmap/GmapApi.class.php (revision 1328)
@@ -44,5 +44,5 @@
 	 */
 	public function getFields() {
-		if(defined('GMAP_CUSTOMINPUT') && $const = GMAP_CUSTOMINPUT && !empty($const)) {
+		if(defined('GMAP_CUSTOMINPUT') && ($const = GMAP_CUSTOMINPUT) && !empty($const)) {
 			$tmp = explode(",", GMAP_CUSTOMINPUT);
 			$cols = array();
@@ -84,5 +84,4 @@
 	 */
 	public function search($location) {
-
 		if(!$this->isActive()) {
 			return;
