diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-06 13:06:08 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-06 13:06:08 -0700 |
commit | aeee88031fed7029c3320800d237b69993e8b6d4 (patch) | |
tree | 1fd23fd5dda38c9cab7423f611eb090bb85d926f /modules/gallery/helpers/item_rest.php | |
parent | e1d3b0295d0f6d098a7b5563aa1f5b6af247319f (diff) |
Fix an unused variable caused by converting straight query params
to $entity based params.
Diffstat (limited to 'modules/gallery/helpers/item_rest.php')
-rw-r--r-- | modules/gallery/helpers/item_rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php index 298c2f4a..c88f92d9 100644 --- a/modules/gallery/helpers/item_rest.php +++ b/modules/gallery/helpers/item_rest.php @@ -152,7 +152,7 @@ class item_rest_Core { $item->type = "album"; $item->parent_id = $parent->id; $item->name = $entity->name; - $item->title = isset($entity->title) ? $entity->title : $name; + $item->title = isset($entity->title) ? $entity->title : $entity->name; $item->description = isset($entity->description) ? $entity->description : null; $item->slug = isset($entity->slug) ? $entity->slug : null; $item->save(); |