@@ -57,8 +57,7 @@ |
||
57 | 57 | if ($value === null) { |
58 | 58 | $this->lastError = 'Field must not be NULL'; |
59 | 59 | return false; |
60 | - } |
|
61 | - else { |
|
60 | + } else { |
|
62 | 61 | $this->lastError = null; |
63 | 62 | } |
64 | 63 |
@@ -48,7 +48,9 @@ |
||
48 | 48 | */ |
49 | 49 | public function isValidValue($value) |
50 | 50 | { |
51 | - if (is_null($value)) return true; |
|
51 | + if (is_null($value)) { |
|
52 | + return true; |
|
53 | + } |
|
52 | 54 | foreach ($this->getConfig()->get('values') as $item) { |
53 | 55 | if ($value === $item['name'] || $value === $item['value']) { |
54 | 56 | $this->lastError = null; |