[pLog-svn] r2982 - plog/trunk/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Feb 23 18:57:38 GMT 2006
Author: oscar
Date: 2006-02-23 18:57:38 +0000 (Thu, 23 Feb 2006)
New Revision: 2982
Modified:
plog/trunk/class/action/admin/adminaction.class.php
Log:
solved a crash issue with the new "admin mode" feature
Modified: plog/trunk/class/action/admin/adminaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaction.class.php 2006-02-23 18:27:02 UTC (rev 2981)
+++ plog/trunk/class/action/admin/adminaction.class.php 2006-02-23 18:57:38 UTC (rev 2982)
@@ -63,7 +63,7 @@
// do the same with the information about the blog
$this->_getBlogInfo();
- if( empty( $this->_blogInfo ) ) {
+ if( empty( $this->_blogInfo )) {
if( $this->_actionInfo->getActionParamValue() != "blogSelect" &&
$this->_actionInfo->getActionParamValue() != "registerBlog" &&
$this->_actionInfo->getActionParamValue() != "finishRegisterBlog" ) {
@@ -84,10 +84,12 @@
// in case we're in "admin mode" (where administrators can log into anybody's blog), we should also
// display the current blog in the drop-down list on the top left corner, if only to make it clear to
// the user that this is another completely different blog
- if( $this->_blogInfo->getOwnerId() != $this->_userInfo->getId() &&
- $this->_userInfo->isSiteAdmin()) {
- $this->_userBlogs[] = $this->_blogInfo;
- }
+ if( $this->_blogInfo ) {
+ if( $this->_blogInfo->getOwnerId() != $this->_userInfo->getId() &&
+ $this->_userInfo->isSiteAdmin()) {
+ $this->_userBlogs[] = $this->_blogInfo;
+ }
+ }
}
/**
More information about the pLog-svn
mailing list