Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix-php5' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Simonin committed Mar 14, 2017
2 parents cea9e46 + 51709cc commit 072046f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Builder/Fields/Filename.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function build($value, $operator = null)
{
$search = $this->builder->getParams();
$search['filename'] = $value;
$search['filename_operator'] = $operator ?? '=';
$search['filename_operator'] = (isset($operator)) ? $operator : '=';

$this->builder->setParams($search);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Filer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function search(SearchBuilder $builder)

$body = \json_decode($response->getBody(), true);

$body['files'] = $body['files'] ?? [];
$body['files'] = (isset($body['files'])) ? $body['files'] : [];

foreach ($body['files'] as &$file) {
$file = new FileWrapper($this, $file);
Expand Down

0 comments on commit 072046f

Please sign in to comment.