summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php2
1 files changed, 1 insertions, 1 deletions
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<photos.length; i++) {
appendPhotoToFormData(photos[i], "photo[]");