Changeset 20461 for extensions/rv_gmaps/trunk/include/functions_map.php
- Timestamp:
- Jan 29, 2013, 10:21:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/include/functions_map.php
r18928 r20461 319 319 $uppercats_list = array(); 320 320 $cat_bounds = array(); 321 while ($row = mysql_fetch_assoc($result))322 { 323 array_push($uppercats_list, $row['uppercats']);321 while ($row = pwg_db_fetch_assoc($result)) 322 { 323 $uppercats_list[] = $row['uppercats']; 324 324 $cat_id = $row['cat_id']; 325 325 unset( $row['cat_id'], $row['uppercats'] ); … … 363 363 364 364 365 function marray_from_query($query)366 {367 $ret = array();368 $result = pwg_query($query);369 while ($row = mysql_fetch_assoc($result))370 $ret[] = $row;371 return $ret;372 }373 374 365 define('RVM_BUILD_ARRAY', 0); 375 366 define('RVM_BUILD_HASH', 1); … … 398 389 { 399 390 case RVM_BUILD_ARRAY: 400 $func = ' marray_from_query';391 $func = 'array_from_query'; 401 392 $group_by = ' 402 393 GROUP BY i.id'; … … 408 399 break; 409 400 case RVM_BUILD_AGGREGATE: 410 $func = ' marray_from_query';401 $func = 'array_from_query'; 411 402 $group_by = ''; 412 403 break;
Note: See TracChangeset
for help on using the changeset viewer.