Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'basz/hotfix/zf2-349'
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Jun 13, 2012
8 parents 3a2cf9b + 192d20c + d2649e3 + f0162d1 + 6f01416 + a2b3753 + 1786961 + a000795 commit eb2029b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Helper/HeadScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ public function itemToString($item, $indent, $escapeStart, $escapeEnd)
$attrString = '';
if (!empty($item->attributes)) {
foreach ($item->attributes as $key => $value) {
if ((!$this->arbitraryAttributesAllowed()
&& !in_array($key, $this->_optionalAttributes))
if ((!$this->arbitraryAttributesAllowed() && !in_array($key, $this->_optionalAttributes))
|| in_array($key, array('conditional', 'noescape')))
{
continue;
Expand Down

0 comments on commit eb2029b

Please sign in to comment.