Changeset 125297 in spip-zone
- Timestamp:
- Jun 24, 2020, 2:51:08 PM (7 months ago)
- Location:
- _plugins_/isocode/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/isocode/trunk
- Property subgit:lock:b47c197902c405f80d10da25f1107ba96f100c1d deleted
-
Property
subgit:lock:8a2b16619c12cadf2803ac6f1dd08662d962e6ac
set to
2020-06-24T16:51:15.602
-
_plugins_/isocode/trunk/ezrest/isocode.php
r125295 r125297 182 182 $where[] = sql_in('code_3166_2', $codes_subdivision); 183 183 184 $alternates = sql_allfetsel('*', 'spip_iso3166alternates', $where); 185 if ($alternates) { 186 $alternates = array_column($alternates, null, 'code_3166_2'); 184 $alternates = array(); 185 $codes = sql_allfetsel('*', 'spip_iso3166alternates', $where); 186 if ($codes) { 187 // On range les codes alternatifs par code ISO-3166-2 188 foreach ($codes as $_alternate) { 189 $alternates[$_alternate['code_3166_2']][] = $_alternate; 190 } 187 191 } 188 192 $subdivisions['codes_alternatifs'] = $alternates;
Note: See TracChangeset
for help on using the changeset viewer.