[pLog-svn] r2051 - plog/branches/plog-1.0.1/class/action/admin

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon May 23 09:04:00 GMT 2005


Author: oscar
Date: 2005-05-23 09:03:59 +0000 (Mon, 23 May 2005)
New Revision: 2051

Modified:
   plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php
Log:
fix for issue 536 (http://bugs.plogworld.net/view.php?id=536)


Modified: plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php	2005-05-22 23:21:07 UTC (rev 2050)
+++ plog/branches/plog-1.0.1/class/action/admin/adminmainaction.class.php	2005-05-23 09:03:59 UTC (rev 2051)
@@ -37,7 +37,7 @@
 				
 				// check if the user really belongs to one or more blogs and if not, quit
 				$users = new Users();
-				$userBlogs = $users->getUsersBlogs( $this->_userInfo->getId());
+				$userBlogs = $users->getUsersBlogs( $this->_userInfo->getId(), BLOG_STATUS_ACTIVE );
 				if( count($userBlogs) == 0 ) {
 					$this->_view = new AdminSimpleErrorView();
 					$this->_view->setValue( "message", $this->_locale->tr("error_dont_belong_to_any_blog" ));




More information about the pLog-svn mailing list