Show
Ignore:
Timestamp:
03/18/11 21:34:09 (2 years ago)
Author:
Torben Brodt
Message:

fixes for custom gmap input

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • g-map/files/lib/data/gmap/GmapApi.class.php

    r1309 r1326  
    4040        } 
    4141         
     42        /** 
     43         * @var array<string> 
     44         */ 
    4245        public function getFields() { 
    4346                if(defined('GMAP_CUSTOMINPUT') && $const = GMAP_CUSTOMINPUT && !empty($const)) { 
    44                         $cols = explode(",", GMAP_CUSTOMINPUT); 
     47                        $tmp = explode(",", GMAP_CUSTOMINPUT); 
     48                        $cols = array(); 
     49                        foreach($tmp as $field) { 
     50                                $col = User::getUserOptionID($field); 
     51                                if($col) { 
     52                                        $cols[] = $field; 
     53                                } 
     54                        } 
    4555                } else { 
    4656                        $cols = array('location'); 
     
    4959        } 
    5060         
     61        /** 
     62         * @var string 
     63         */ 
    5164        public function getColumn() { 
    5265                $cols = array();