Skip to content

Commit

Permalink
Make Controller_Rest_Items a bit more tolerant with the urls parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadlaws committed Jun 13, 2013
1 parent c32519d commit 55e5c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/classes/Gallery/Controller/Rest/Items.php
Expand Up @@ -75,7 +75,7 @@ public static function get_members($id, $params) {
} else if ($urls = Arr::get($params, "urls")) {
// Members are taken from a list of urls, filtered by name and type.
// @todo: json_decode is what was used in 3.0, but should we allow comma-separated lists, too?
foreach (json_decode($urls) as $url) {
foreach (json_decode($urls, true) as $url) {
list ($m_type, $m_id, $m_params) = Rest::resolve($url);
if ($m_type != "item") {
throw Rest_Exception::factory(400, array("urls" => "invalid"));
Expand Down

0 comments on commit 55e5c0d

Please sign in to comment.