diff --git a/src/ZfTable/AbstractElement.php b/src/ZfTable/AbstractElement.php index 86ed777..72e282d 100644 --- a/src/ZfTable/AbstractElement.php +++ b/src/ZfTable/AbstractElement.php @@ -111,7 +111,7 @@ public function addVarAttr($name, $value) */ public function addAttr($name, $value) { - if (!in_array($name, $this->attributes)) { + if (!array_key_exists($name, $this->attributes)) { $this->attributes[$name] = $value; } return $this;