From 3fadbbbf2e8aa71a04928de2e1bfeb891c987dd3 Mon Sep 17 00:00:00 2001 From: Robbie Mackay Date: Wed, 22 Jun 2016 14:24:26 +1200 Subject: [PATCH] Fix repeated if in Post Validator --- application/classes/Ushahidi/Validator/Post/Create.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/application/classes/Ushahidi/Validator/Post/Create.php b/application/classes/Ushahidi/Validator/Post/Create.php index ee0f2e4bbc..e44c29af2f 100644 --- a/application/classes/Ushahidi/Validator/Post/Create.php +++ b/application/classes/Ushahidi/Validator/Post/Create.php @@ -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]);