Changeset 32107
- Timestamp:
- Apr 17, 2020, 12:32:08 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/meta_og/admin.php
r32106 r32107 120 120 } 121 121 $metaog['path']=''; 122 $tab_picture = pwg_query('SELECT id, name,path FROM ' . IMAGES_TABLE . ' order by id;');122 $tab_picture = pwg_query('SELECT id,file,name,path FROM ' . IMAGES_TABLE . ' order by id;'); 123 123 if (pwg_db_num_rows($tab_picture)) { 124 124 while ($info_photos = pwg_db_fetch_assoc($tab_picture)) { … … 130 130 $path=""; 131 131 } 132 $items = array( 133 'PHOTOID' => $info_photos['id'], 134 'PHOTOINFO' => $info_photos['id'].' - '.$info_photos['name'], 135 'PHOTOSELECT' => $select, 136 ); 132 if(empty($info_photos['name'])){$legend=$info_photos['file'];}else{$legend=$info_photos['name'];} 133 $items = array( 134 'PHOTOID' => $info_photos['id'], 135 'PHOTOINFO' => $info_photos['id'].' - '.$legend, 136 'PHOTOSELECT' => $select, 137 ); 137 138 $template->append('info_photos', $items); 138 139 }
Note: See TracChangeset
for help on using the changeset viewer.