Browse Source

only send photo property if there is a photo

pull/82/head
Aaron Parecki 7 years ago
parent
commit
cbde68bafe
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      views/new-post.php

+ 1
- 1
views/new-post.php View File

@ -677,7 +677,7 @@ $(function(){
if(photos.length == 1) {
entry['photo'] = [];
appendPhotoToFormData(photos[0], "photo");
} else {
} else if(photos.length > 1) {
entry['photo'] = [];
for(i=0; i<photos.length; i++) {
appendPhotoToFormData(photos[i], "photo[]");

Loading…
Cancel
Save