@@ -104,7 +104,9 @@ |
||
104 | 104 | */ |
105 | 105 | public function hasAttributeValue($name, $value = null) |
106 | 106 | { |
107 | - if (!$this->hasAttribute($name)) return false; |
|
107 | + if (!$this->hasAttribute($name)) { |
|
108 | + return false; |
|
109 | + } |
|
108 | 110 | return (empty($value) ? true : (array_search($value, $this->getArrayAttribute($name)) !== false)); |
109 | 111 | } |
110 | 112 |