Changeset 30359
- Timestamp:
- Nov 3, 2014, 10:07:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions/pwg.tags.php
r26461 r30359 111 111 } 112 112 113 $order_by = ws_std_image_sql_order($params, 'i.'); 114 if (!empty($order_by)) 115 { 116 $order_by = 'ORDER BY '.$order_by; 117 } 113 118 $image_ids = get_image_ids_for_tags( 114 119 $tag_ids, 115 120 $params['tag_mode_and'] ? 'AND' : 'OR', 116 121 $where_clauses, 117 ws_std_image_sql_order($params)122 $order_by 118 123 ); 119 124 … … 137 142 { 138 143 $row['image_id'] = (int)$row['image_id']; 139 $image_ids[] = $row['image_id'];140 144 $image_tag_map[ $row['image_id'] ] = explode(',', $row['tag_ids']); 141 145 }
Note: See TracChangeset
for help on using the changeset viewer.