Changeset 1328
Legend:
- Unmodified
- Added
- Removed
-
g-map/files/lib/data/gmap/GmapApi.class.php
r1326 r1328 44 44 */ 45 45 public function getFields() { 46 if(defined('GMAP_CUSTOMINPUT') && $const = GMAP_CUSTOMINPUT&& !empty($const)) {46 if(defined('GMAP_CUSTOMINPUT') && ($const = GMAP_CUSTOMINPUT) && !empty($const)) { 47 47 $tmp = explode(",", GMAP_CUSTOMINPUT); 48 48 $cols = array(); … … 84 84 */ 85 85 public function search($location) { 86 87 86 if(!$this->isActive()) { 88 87 return; -
g-map/optionals/de.easy-coding.wcf.map.custominput/files/lib/system/event/listener/MapCustomInputListener.class.php
r1327 r1328 18 18 foreach($tmp as $field) { 19 19 $col = User::getUserOptionID($field); 20 if($col ) {21 $cols[] = $ col;20 if($col && in_array($col, explode(",", $this->optionIDs))) { 21 $cols[] = $field; 22 22 } 23 23 } … … 36 36 switch($eventName) { 37 37 case 'readData': 38 38 $this->getOptionIDs(); 39 39 $this->current = explode(",", $eventObj->activeOptions['gmap_custominput']['optionValue']); 40 40 $this->current = $this->validate($this->current); 41 41 $eventObj->activeOptions['gmap_custominput']['optionValue'] = implode(",", $this->current); 42 $this->getOptionIDs();43 42 $this->readOptions(); 44 43 break; … … 97 96 AND option_table.editable < 4 98 97 AND option_table.visible < 4 98 AND option_table.optionType IN ('text', 'select') 99 99 ORDER BY package_dependency.priority"; 100 100 $result = WCF::getDB()->sendQuery($sql); 101 $options = array( );101 $options = array(0); 102 102 while ($row = WCF::getDB()->fetchArray($result)) { 103 103 $options[$row['optionName']] = $row['optionID'];
