diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-06 15:45:03 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-06 15:45:03 -0700 |
commit | 097ef934c6fe188cc368905ee72b7cca6ad2f755 (patch) | |
tree | 75e92a4edf717f2a6828a802f45485af06af3c71 /modules/gallery/helpers/item_rest.php | |
parent | c4d85721fc0a3b9aad45451fb917d6e23b804c05 (diff) | |
parent | aeee88031fed7029c3320800d237b69993e8b6d4 (diff) |
Merge branch 'master' into talmdal_dev
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 ec86ce93..f99afbc2 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(); |