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

Commit

Permalink
Fix same input issue for adding a post
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigChilds94 committed Feb 26, 2016
1 parent 90a6c32 commit 29ac0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anchor/routes/posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@

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

if(is_null($input['comments'])) {
if(empty($input['comments'])) {
$input['comments'] = 0;
}

Expand Down

0 comments on commit 29ac0e0

Please sign in to comment.