Ignore:
Timestamp:
08/31/14 16:59:32 (6 years ago)
Author:
rvelices
Message:

fix rv_gmaps maintanance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/maintain.inc.php

    r28498 r29335  
    2525  global $conf; 
    2626 
    27   $query = 'SHOW COLUMNS FROM '. IMAGES_TABLE .' LIKE "latitude";'; 
    28  
    29   if (pwg_db_num_rows(pwg_query($query))) 
     27        $query = 'SHOW COLUMNS FROM '. IMAGES_TABLE .' LIKE "lat";'; 
     28        if (pwg_db_num_rows(pwg_query($query))) 
    3029                rvgm_drop_old_columns(); 
    3130        pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param IN("gmaps_auto_sync")'); 
Note: See TracChangeset for help on using the changeset viewer.