Changeset 1021483
- Timestamp:
- 11/07/2014 12:32:57 PM (11 years ago)
- File:
-
- 1 edited
-
advanced-uploader/trunk/upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-uploader/trunk/upload.php
r1019552 r1021483 57 57 global $adv_file_upload_admin_page, $wpdb; 58 58 //get plugin's options 59 $destinations = get_option('adv_file_upload_destination' );59 $destinations = get_option('adv_file_upload_destination', array()); 60 60 $gallery = get_option('adv_file_upload_gallery'); 61 61 $bws = get_option('adv_file_upload_bws'); … … 169 169 170 170 echo "var sizes = new Array();\n"; 171 foreach ( get_intermediate_image_sizes() as $s ) { 171 $intermediate_sizes = get_intermediate_image_sizes(); 172 if (!is_array($intermediate_sizes)) { 173 $intermediate_sizes = array(); 174 } 175 foreach ( $intermediate_sizes as $s ) { 172 176 echo "sizes['" . $s . "'] = new Array();\n"; 173 177
Note: See TracChangeset
for help on using the changeset viewer.