Changeset 4731 for trunk/admin/include/functions.php
- Timestamp:
- Jan 23, 2010, 11:57:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r4618 r4731 263 263 pwg_query($query); 264 264 265 // are the photo used as category representant? 266 $query = ' 267 SELECT 268 id 269 FROM '.CATEGORIES_TABLE.' 270 WHERE representative_picture_id IN ( 271 '.wordwrap(implode(', ', $ids), 80, "\n").') 272 ;'; 273 $category_ids = array_from_query($query, 'id'); 274 if (count($category_ids) > 0) 275 { 276 update_category($category_ids); 277 } 278 265 279 trigger_action('delete_elements', $ids); 266 280 }
Note: See TracChangeset
for help on using the changeset viewer.