From: Cash Costello Date: Sat, 14 Jul 2012 12:52:12 +0000 (-0400) Subject: fixed return value X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f6836700a311515c7a9a4fc6b77b50b1bd1f7fb2;p=lorea%2Felgg.git fixed return value --- 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); } /**