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

Commit

Permalink
Fix issue with input of comment being empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigChilds94 committed Feb 26, 2016
1 parent a0fa4d2 commit 90a6c32
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 @@ -158,7 +158,7 @@
unset($input['created']);
}

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

Expand Down

0 comments on commit 90a6c32

Please sign in to comment.