diff --git a/views/new-post.php b/views/new-post.php index 4fbad4b..fb0b3fc 100644 --- a/views/new-post.php +++ b/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