Changeset 1596 for trunk/picture.php
- Timestamp:
- Nov 7, 2006, 4:37:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1590 r1596 82 82 'SRC_IMG' => $element_info['image_url'], 83 83 'ALT_IMG' => $element_info['file'], 84 'WIDTH_IMG' => $element_info['scaled_width'],85 'HEIGHT_IMG' => $element_info['scaled_height'],84 'WIDTH_IMG' => @$element_info['scaled_width'], 85 'HEIGHT_IMG' => @$element_info['scaled_height'], 86 86 ) 87 87 ); … … 280 280 $result = pwg_query($query); 281 281 282 while ($row = mysql_fetch_a rray($result))282 while ($row = mysql_fetch_assoc($result)) 283 283 { 284 284 if (isset($page['previous_item']) and $row['id'] == $page['previous_item']) … … 303 303 } 304 304 305 foreach (array_keys($row) as $key) 306 { 307 if (!is_numeric($key)) 308 { 309 $picture[$i][$key] = $row[$key]; 310 } 311 } 305 $picture[$i] = $row; 312 306 313 307 $picture[$i]['is_picture'] = false; … … 381 375 } 382 376 383 $picture[$i]['thumbnail'] = get_thumbnail_ src($row['path'], @$row['tn_ext']);377 $picture[$i]['thumbnail'] = get_thumbnail_url($row); 384 378 385 379 if ( !empty( $row['name'] ) )
Note: See TracChangeset
for help on using the changeset viewer.