Skip to content

Commit

Permalink
Merge c5d1c0f into 7ab410a
Browse files Browse the repository at this point in the history
  • Loading branch information
weroh committed Jan 20, 2020
2 parents 7ab410a + c5d1c0f commit 5ccea32
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/ApiOperations/All.php
Expand Up @@ -19,20 +19,6 @@ public static function all($params = null, $opts = null)
{
self::_validateParams($params);

// Convert filter[] pararms
if (is_array($params)) {
foreach ($params as $name => $val) {

// Make sure this isn't a page[] param
if (strpos($name, '[') === false && strpos($name, ']') === false) {

// Enclose param in filter[] and remove old param
$params['filter[' . $name . ']'] = $val;
unset($params[$name]);
}
}
}

$url = static::classUrl();

list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
Expand Down

0 comments on commit 5ccea32

Please sign in to comment.