Skip to content

Commit

Permalink
Debug Controller_Rest_Item::put_members() - I broke it while refactor…
Browse files Browse the repository at this point in the history
…ing...
  • Loading branch information
shadlaws committed Jun 16, 2013
1 parent 81977fe commit b278919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/gallery/classes/Gallery/Controller/Rest/Item.php
Expand Up @@ -315,9 +315,9 @@ public static function put_members($id, $params) {
}

// Resolve our members list into an array of weights => ids.
$members_array = Rest::resolve_members($param["members"],
function($type, $id, $param, $data) {
return (($type == "item") && (ORM::factory("Item", $id)->parent_id == $data));
$members_array = Rest::resolve_members($params["members"],
function($type, $id, $params, $data) {
return (($type == "item") && (ORM::factory("Item", $id)->parent_id == $data)) ? $id : null;
}, $item->id);

// Sort members by their weights (given by their keys).
Expand Down

0 comments on commit b278919

Please sign in to comment.