Skip to content

Commit

Permalink
refactoring due to hhvm memory leak #45
Browse files Browse the repository at this point in the history
  • Loading branch information
imsamurai committed Dec 22, 2014
1 parent 89f6260 commit 07f9531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/Config/HttpSourceEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public function schema() {
* @param array $queryData
*/
public function buildRequest(Model $model, array $queryData) {
$queryData += array(
$queryData = $queryData + array(
'conditions' => array()
);
if ($this->method() === static::METHOD_READ) {
Expand Down Expand Up @@ -543,7 +543,7 @@ protected function _processReadParams(Model $model, array &$params) {
$values = explode('+', $value);
$conditions[$condition] = 0;
foreach ($values as $valueName) {
$conditions[$condition] += (int)Hash::get($params, $valueName);
$conditions[$condition] = $conditions[$condition] + (int)Hash::get($params, $valueName);
unset($params[$valueName]);
}
if ($conditions[$condition] === 0) {
Expand Down

0 comments on commit 07f9531

Please sign in to comment.