diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 08:52:12 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 08:52:12 -0400 |
commit | f6836700a311515c7a9a4fc6b77b50b1bd1f7fb2 (patch) | |
tree | 8ade5d397892067237225c7106ab20c031cf6929 /classes/TidypicsAlbum.php | |
parent | 39c88e7b82d8bd6483e668ef80cbbe08d3a45ac7 (diff) | |
download | elgg-f6836700a311515c7a9a4fc6b77b50b1bd1f7fb2.tar.gz elgg-f6836700a311515c7a9a4fc6b77b50b1bd1f7fb2.tar.bz2 |
fixed return value
Diffstat (limited to 'classes/TidypicsAlbum.php')
-rw-r--r-- | classes/TidypicsAlbum.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/classes/TidypicsAlbum.php b/classes/TidypicsAlbum.php index 57bdcf707..3133cbb7a 100644 --- a/classes/TidypicsAlbum.php +++ b/classes/TidypicsAlbum.php @@ -228,7 +228,8 @@ class TidypicsAlbum extends ElggObject { /** * Sets the album image order * - * @param array $list An indexed array of image guids + * @param array $list An indexed array of image guids + * @return bool */ public function setImageList($list) { // validate data @@ -239,18 +240,20 @@ class TidypicsAlbum extends ElggObject { } $listString = serialize($list); - return $this->orderedImages = $listString; + $this->orderedImages = $listString; + return true; } /** * Add new images to the front of the image list * * @param array $list An indexed array of image guids + * @return bool */ public function prependImageList($list) { $currentList = $this->getImageList(); $list = array_merge($list, $currentList); - $this->setImageList($list); + return $this->setImageList($list); } /** |