Skip to content

Commit

Permalink
Merge pull request #78 from ashnazg/count
Browse files Browse the repository at this point in the history
array or Countable error in 7.2
  • Loading branch information
ashnazg authored Jul 20, 2018
2 parents 6eb037e + 9366ac8 commit 1af540d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PEAR/PackageFile/v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ function _mergeTag($manip, $contents, $order)
if (is_array($manip[$tag]) && !empty($manip[$tag]) && isset($manip[$tag][0])) {
$manip[$tag][] = $contents;
} else {
if (!count($manip[$tag])) {
if (is_array($manip[$tag]) && !count($manip[$tag])) {
$manip[$tag] = $contents;
} else {
$manip[$tag] = array($manip[$tag]);
Expand Down

0 comments on commit 1af540d

Please sign in to comment.