[pLog-svn] r3429 - plog/trunk/class/summary/action

mark at devel.lifetype.net mark at devel.lifetype.net
Thu May 18 05:48:20 GMT 2006


Author: mark
Date: 2006-05-18 05:48:19 +0000 (Thu, 18 May 2006)
New Revision: 3429

Modified:
   plog/trunk/class/summary/action/summarydefaultaction.class.php
Log:
Fixed bug http://bugs.lifetype.net/view.php?id=895

Modified: plog/trunk/class/summary/action/summarydefaultaction.class.php
===================================================================
--- plog/trunk/class/summary/action/summarydefaultaction.class.php	2006-05-18 05:43:49 UTC (rev 3428)
+++ plog/trunk/class/summary/action/summarydefaultaction.class.php	2006-05-18 05:48:19 UTC (rev 3429)
@@ -75,7 +75,10 @@
 			$this->_view->setValue( "step", $step );
 		
 			// we just need a random blog so... we'll get one :)
-			$randomBlog = array_pop( $blogs->getAllBlogs( BLOG_STATUS_ACTIVE, ALL_BLOG_CATEGORIES, "", 1, 1) );
+			
+			$allBlogs = $blogs->getAllBlogs( BLOG_STATUS_ACTIVE, ALL_BLOG_CATEGORIES, "", 1, 1);
+			$randomBlog = array_pop( $allBlogs );
+
 			$url = $randomBlog->getBlogRequestGenerator();
 			$this->_view->setValue( "url", $url );
 			



More information about the pLog-svn mailing list