Changeset 4730 for branches/2.0/admin/element_set_global.php
- Timestamp:
- Jan 23, 2010, 11:56:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/element_set_global.php
r4495 r4730 92 92 if (count($deletables) > 0) 93 93 { 94 // what will be the categories to update? (to avoid orphan on95 // representative_picture_id)96 $query = '97 SELECT98 category_id99 FROM '.IMAGE_CATEGORY_TABLE.'100 WHERE image_id IN ('.implode(',', $deletables).')101 ;';102 $categories_to_update = array_from_query($query, 'category_id');103 104 94 $physical_deletion = true; 105 95 delete_elements($deletables, $physical_deletion); 106 107 update_category($categories_to_update);108 96 109 97 array_push(
Note: See TracChangeset
for help on using the changeset viewer.