Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
null search params instead of unset in API
Browse files Browse the repository at this point in the history
  • Loading branch information
oohnoitz committed Jan 30, 2015
1 parent 394397d commit beb96bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/Api/Chan.php
Expand Up @@ -304,7 +304,7 @@ public function get_search()
'image', 'deleted', 'ghost', 'type', 'filter', 'start', 'end', 'results', 'order', 'page'
];

if ($this->getAuth()->hasAccess('comment.see_ip')) {;
if ($this->getAuth()->hasAccess('comment.see_ip')) {
$modifiers[] = 'poster_ip';
}

Expand All @@ -319,7 +319,7 @@ public function get_search()
if (trim($value) !== '') {
$search[$key] = rawurldecode(trim($value));
} else {
unset($search[$key]);
$search[$key] = null;
}
}
}
Expand Down

0 comments on commit beb96bf

Please sign in to comment.