Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Commit 29ac0e0

Browse files
committed
Fix same input issue for adding a post
1 parent 90a6c32 commit 29ac0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anchor/routes/posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252

253253
$input['author'] = $user->id;
254254

255-
if(is_null($input['comments'])) {
255+
if(empty($input['comments'])) {
256256
$input['comments'] = 0;
257257
}
258258

0 commit comments

Comments
 (0)