Changeset 20202 for extensions/Piwecard/include/publish.inc.php
- Timestamp:
- Jan 17, 2013, 12:06:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/include/publish.inc.php
r20103 r20202 10 10 11 11 if (isset($ecard_id) and $ecard_id != '' and $piwecard->is_valid($ecard_id)) { 12 $query = 'SELECT * FROM '.PIWECARD_TABLE.' WHERE id ="'.$ecard_id.'";';12 $query = 'SELECT * FROM '.PIWECARD_TABLE.' WHERE ecard_id="'.$ecard_id.'";'; 13 13 $result = pwg_query($query); 14 14 $result_array = pwg_db_fetch_assoc($result); 15 15 16 if (isset($result_array[' id'])) {16 if (isset($result_array['ecard_id'])) { 17 17 //Recover img infos. 18 18 $query = 'SELECT DISTINCT * FROM '.IMAGES_TABLE.' AS img WHERE img.id = '.$result_array['image'].';'; … … 41 41 'image_title' => (($piwecard->config['show_image_infos'] == '1') ? $row['name'] : null), 42 42 'image_author' => (($piwecard->config['show_image_infos'] == '1') ? $row['author'] : null), 43 )); 43 'image_border' => array( 44 'display' => $piwecard->config['image_border']['display'], 45 'style' => $piwecard->config['image_border']['style'], 46 'width' => $piwecard->config['image_border']['width'], 47 'color' => $piwecard->config['image_border']['color'], 48 ), 49 ) 50 ); 44 51 45 52 }
Note: See TracChangeset
for help on using the changeset viewer.