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. 2
      views/new-post.php

2
views/new-post.php

@ -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