Changeset 2301 for branches/branch-1_7/include
- Timestamp:
- Apr 8, 2008, 3:35:02 AM (17 years ago)
- Location:
- branches/branch-1_7/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/include/functions_url.inc.php
r2228 r2301 525 525 array_push($requested_tag_ids, $matches[1]); 526 526 } 527 else 527 elseif ( !empty($tokens[$i]) ) 528 528 { 529 529 array_push($requested_tag_url_names, $tokens[$i]); -
branches/branch-1_7/include/section_init.inc.php
r2202 r2301 288 288 { 289 289 $query = ' 290 SELECT image_id290 SELECT DISTINCT(image_id) 291 291 FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON image_id=id 292 292 WHERE image_id IN ('.implode(',', $items).') … … 294 294 $conf['order_by'].' 295 295 ;'; 296 $items = array_unique( 297 array_from_query($query, 'image_id') 298 ); 296 $items = array_from_query($query, 'image_id'); 299 297 } 300 298 … … 305 303 array( 306 304 'title' => $title, 307 'items' => array_values($items),305 'items' => $items, 308 306 ) 309 307 );
Note: See TracChangeset
for help on using the changeset viewer.