Ignore:
Timestamp:
Nov 6, 2013, 6:56:14 PM (10 years ago)
Author:
cljosse
Message:

[extensions] edit_gmaps corrections bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/edit_gmaps.inc.php

    r24288 r25359  
    4444    $columns_of = array();
    4545    $query = 'DESC '.$table.';';
    46     $result = pwg_db_fetch_assoc($query);       
     46
    4747    $columns_of[$table] = array();   
    48 
     48     $result=pwg_query($query);
    4949    if ($result)   
    50         while ($row = pwg_db_fetch_row($result))
     50        while ($row = pwg_db_fetch_row($result)){     
    5151            array_push($columns_of[$table], $row[0]);
    52        
     52        }
    5353    return $columns_of;
    5454  }
     
    288288  global $EDIT_CL_parametres;
    289289//=============================================================================
     290 
    290291$my_para=$EDIT_CL_parametres;
     292 if (empty($my_para)) $my_para= (object) '';
    291293$lon= isset($my_para->lon)? $my_para->lon:'' ;
    292294$lat= isset($my_para->lat)? $my_para->lat:'' ;
Note: See TracChangeset for help on using the changeset viewer.