Skip to content

Commit

Permalink
Fix repeated if in Post Validator
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Jun 22, 2016
1 parent 4b84b08 commit 3fadbbb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions application/classes/Ushahidi/Validator/Post/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ public function checkValues(Validation $validation, $attributes, $data)
{
// Check attribute exists
$attribute = $this->attribute_repo->getByKey($key, $data['form_id'], true);
if (! $attribute->id) {

}
if (! $attribute->id)
{
$validation->error('values', 'attributeDoesNotExist', [$key]);
Expand Down

0 comments on commit 3fadbbb

Please sign in to comment.