Skip to content

Commit

Permalink
Renamed an ambigous variable
Browse files Browse the repository at this point in the history
  • Loading branch information
CHH committed Mar 9, 2012
1 parent 09f5bae commit cc0b327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Jazz.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ protected static function renderNode($node, $document)
);
}

foreach ($node as $el) {
foreach ($node as $argv) {
# Is the tag argument an attributes array?
if (is_array($el) and count(array_filter(array_keys($el), "is_string")) > 0) {
$attributes = $el;
if (is_array($argv) and count(array_filter(array_keys($argv), "is_string")) > 0) {
$attributes = $argv;
} else {
$content = $el;
$content = $argv;
}
}

Expand Down

0 comments on commit cc0b327

Please sign in to comment.