Changeset 2576
- Timestamp:
- Sep 23, 2008, 11:42:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_global.php
r2575 r2576 114 114 ;'; 115 115 $dissociables = array_from_query($query, 'id'); 116 echo '<pre>'; print_r($dissociables); echo '</pre>';117 116 118 117 if (!empty($dissociables)) … … 126 125 pwg_query($query); 127 126 128 $page['cat_elements_id'] = array_diff( 129 $page['cat_elements_id'], 130 $dissociables 131 ); 127 // we remove the dissociated images if we are currently displaying the 128 // category to dissociate from. 129 if (is_numeric($_GET['cat']) and $_POST['dissociate'] == $_GET['cat']) 130 { 131 $page['cat_elements_id'] = array_diff( 132 $page['cat_elements_id'], 133 $dissociables 134 ); 135 } 132 136 } 133 137
Note: See TracChangeset
for help on using the changeset viewer.