From: Bharat M. <bh...@us...> - 2003-06-30 19:20:41
|
Update of /cvsroot/gallery/gallery2/modules/core/test/TestCase In directory sc8-pr-cvs1:/tmp/cvs-serv22066/modules/core/test/TestCase Modified Files: CreateRandomTree.class Log Message: Fixed a bug which caused all items to get added to one album Index: CreateRandomTree.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/test/TestCase/CreateRandomTree.class,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- CreateRandomTree.class 9 Jun 2003 08:46:58 -0000 1.22 +++ CreateRandomTree.class 30 Jun 2003 19:20:37 -0000 1.23 @@ -74,6 +74,7 @@ function _createRandomAlbum($parentId, &$lockIds) { global $gallery; + $gallery->debug("<h3> Create random album </h3>"); $gallery->guaranteeTimeLimit(10); if ($this->_itemCount >= $this->_maxItems) { @@ -255,7 +256,7 @@ /* 1-3 random comments */ $rand3 = rand(1, 3); - for ($i = 0; $i < $rand3; $i++) { + for ($j = 0; $j < $rand3; $j++) { list ($ret, $comment) = GalleryFactory::newInstance('GalleryEntity', 'GalleryComment'); if ($ret->isError()) { return $ret->wrap(__FILE__, __LINE__); |