Changeset 2575 for trunk/admin/picture_modify.php
- Timestamp:
- Sep 23, 2008, 11:26:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r2530 r2575 178 178 $row = mysql_fetch_array(pwg_query($query)); 179 179 180 $storage_category_id = $row['storage_category_id']; 180 $storage_category_id = null; 181 if (!empty($row['storage_category_id'])) 182 { 183 $storage_category_id = $row['storage_category_id']; 184 } 185 181 186 $image_file = $row['file']; 182 187 … … 398 403 FROM '.CATEGORIES_TABLE.' 399 404 INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = category_id 400 WHERE image_id = '.$_GET['image_id'].' 401 AND id != '.$storage_category_id.' 405 WHERE image_id = '.$_GET['image_id']; 406 if (isset($storage_category_id)) 407 { 408 $query.= ' 409 AND id != '.$storage_category_id; 410 } 411 $query.= ' 402 412 ;'; 403 413 display_select_cat_wrapper($query, array(), 'associated_options'); 404 414 405 415 $result = pwg_query($query); 406 $associateds = array($storage_category_id); 416 $associateds = array(); 417 if (isset($storage_category_id)) 418 { 419 array_push($associateds, $storage_category_id); 420 } 407 421 while ($row = mysql_fetch_array($result)) 408 422 {
Note: See TracChangeset
for help on using the changeset viewer.