From cbde68bafe96479358416021a93a311d3dc8f5cc Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 26 Jun 2017 15:34:52 -0700 Subject: [PATCH] only send photo property if there is a photo --- views/new-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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