[pLog-svn] r3501 - plog/trunk/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed May 31 21:53:10 GMT 2006


Author: oscar
Date: 2006-05-31 21:53:10 +0000 (Wed, 31 May 2006)
New Revision: 3501

Modified:
   plog/trunk/class/dao/userpermissions.class.php
Log:
small fix


Modified: plog/trunk/class/dao/userpermissions.class.php
===================================================================
--- plog/trunk/class/dao/userpermissions.class.php	2006-05-31 21:52:14 UTC (rev 3500)
+++ plog/trunk/class/dao/userpermissions.class.php	2006-05-31 21:53:10 UTC (rev 3501)
@@ -42,6 +42,9 @@
 			include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
 			$blogs = new Blogs();
 			$blogInfo = $blogs->getBlogInfo( $blogId );
+			if( !$blogInfo )
+			 return Array();
+			 
 			if( $blogInfo->getOwnerId() == $userId ) {
 				$perm = new UserPermission( $userId, $blogId, PERMISSION_BLOG_OWNER, 0 );
 				$perms[] = $perm;



More information about the pLog-svn mailing list