Changeset 28494 for trunk/admin/picture_modify.php
- Timestamp:
- May 17, 2014, 2:11:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r27896 r28494 43 43 WHERE representative_picture_id = '.$_GET['image_id'].' 44 44 ;'; 45 $represent_options_selected = array_from_query($query, 'id');45 $represent_options_selected = query2array($query, null, 'id'); 46 46 47 47 // +-----------------------------------------------------------------------+ … … 128 128 { 129 129 $data = array(); 130 $data {'id'}= $_GET['image_id'];131 $data {'name'}= $_POST['name'];132 $data {'author'}= $_POST['author'];130 $data['id'] = $_GET['image_id']; 131 $data['name'] = $_POST['name']; 132 $data['author'] = $_POST['author']; 133 133 $data['level'] = $_POST['level']; 134 134 135 135 if ($conf['allow_html_descriptions']) 136 136 { 137 $data {'comment'}= @$_POST['description'];137 $data['comment'] = @$_POST['description']; 138 138 } 139 139 else 140 140 { 141 $data {'comment'}= strip_tags(@$_POST['description']);141 $data['comment'] = strip_tags(@$_POST['description']); 142 142 } 143 143 144 144 if (!empty($_POST['date_creation_year'])) 145 145 { 146 $data {'date_creation'}=146 $data['date_creation'] = 147 147 $_POST['date_creation_year'] 148 148 .'-'.$_POST['date_creation_month'] … … 152 152 else 153 153 { 154 $data {'date_creation'}= null;154 $data['date_creation'] = null; 155 155 } 156 156 … … 470 470 WHERE image_id = '.$_GET['image_id'].' 471 471 ;'; 472 $associate_options_selected = array_from_query($query, 'id'); 473 474 $query = ' 475 SELECT id,name,uppercats,global_rank 476 FROM '.CATEGORIES_TABLE.' 477 ;'; 478 display_select_cat_wrapper($query, $associate_options_selected, 'associate_options'); 479 display_select_cat_wrapper($query, $represent_options_selected, 'represent_options'); 472 $associate_options_selected = query2array($query, null, 'id'); 473 474 $template->assign(compact('associate_options_selected', 'represent_options_selected')); 480 475 481 476 trigger_action('loc_end_picture_modify');
Note: See TracChangeset
for help on using the changeset viewer.