Skip to content

Commit

Permalink
Merge pull request kbsali#48 from VoidAndAny/merge_recursive
Browse files Browse the repository at this point in the history
Add array_merge_recursive instead of simply array_merge in retrieveAll o...
  • Loading branch information
kbsali committed Jan 23, 2014
2 parents 29f517f + 0b5cb30 commit b0b3621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Redmine/Api/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function retrieveAll($endpoint, array $params = array())
}
$params['limit'] = $_limit;
$params['offset'] = $offset;
$ret = array_merge($ret, $this->get($endpoint . '?' . http_build_query($params)));
$ret = array_merge_recursive($ret, $this->get($endpoint . '?' . http_build_query($params)));
$offset += $_limit;
}

Expand Down

0 comments on commit b0b3621

Please sign in to comment.