]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed return value
authorCash Costello <cash.costello@gmail.com>
Sat, 14 Jul 2012 12:52:12 +0000 (08:52 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 14 Jul 2012 12:52:12 +0000 (08:52 -0400)
classes/TidypicsAlbum.php

index 57bdcf70762bf2fb04d942aa07ab522ceec0c246..3133cbb7a6f9002f49533387e7b9cddddfc12145 100644 (file)
@@ -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);
        }
 
        /**