Changeset 27336 for trunk/include/category_cats.inc.php
- Timestamp:
- Feb 11, 2014, 10:47:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_cats.inc.php
r26461 r27336 134 134 if ($conf['display_fromto']) 135 135 { 136 $dates_of_category = array();137 136 if (count($category_ids) > 0) 138 137 { … … 140 139 SELECT 141 140 category_id, 142 MIN(date_creation) AS date_creation_min,143 MAX(date_creation) AS date_creation_max141 MIN(date_creation) AS `from`, 142 MAX(date_creation) AS `to` 144 143 FROM '.IMAGE_CATEGORY_TABLE.' 145 144 INNER JOIN '.IMAGES_TABLE.' ON image_id = id … … 156 155 GROUP BY category_id 157 156 ;'; 158 $result = pwg_query($query); 159 while ($row = pwg_db_fetch_assoc($result)) 160 { 161 $dates_of_category[ $row['category_id'] ] = array( 162 'from' => $row['date_creation_min'], 163 'to' => $row['date_creation_max'], 164 ); 165 } 157 $dates_of_category = query2array($query, 'category_id'); 166 158 } 167 159 }
Note: See TracChangeset
for help on using the changeset viewer.