Permalink
Browse files

fixed PHP 5.2 issue (count() method is only available as of PHP 5.3, …

…closes #33)
  • Loading branch information...
1 parent e4cb39b commit 56e546fd9bdd4a05b4023ed3c11bb7b4a796aece @fabpot fabpot committed Oct 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pirum
View
2 pirum
@@ -1218,7 +1218,7 @@ class Pirum_Package
public function getDeps()
{
$deps = $this->XMLToArray($this->package->dependencies);
- if ($this->package->dependencies->group->count() > 0) {
+ if ($this->package->dependencies->group->length > 0) {
$deps['group'] = $this->XMLGroupDepsToArray($this->package->dependencies->group);
}

0 comments on commit 56e546f

Please sign in to comment.