[pLog-svn] r2823 - plog/trunk/class/dao/userdata

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jan 19 19:13:22 GMT 2006


Author: mark
Date: 2006-01-19 19:13:21 +0000 (Thu, 19 Jan 2006)
New Revision: 2823

Modified:
   plog/trunk/class/dao/userdata/baseuserdataprovider.class.php
Log:
It is the most weird bug. I move the include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" ); from getUsersBlogs to the head of file. Then, the blog selection works very well...

If I move it back inside the getBlogUsers() method, then the blog selection works abnormal...

Modified: plog/trunk/class/dao/userdata/baseuserdataprovider.class.php
===================================================================
--- plog/trunk/class/dao/userdata/baseuserdataprovider.class.php	2006-01-19 18:57:58 UTC (rev 2822)
+++ plog/trunk/class/dao/userdata/baseuserdataprovider.class.php	2006-01-19 19:13:21 UTC (rev 2823)
@@ -2,6 +2,7 @@
 
 	include_once( PLOG_CLASS_PATH."class/dao/model.class.php" );
 	include_once( PLOG_CLASS_PATH."class/dao/userstatus.class.php" );
+	include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );	
 
 	/**
 	 * This is the base class that defines the methods that all user-data providers must implement.
@@ -91,7 +92,6 @@
          */
         function getUsersBlogs( $userid, $status = BLOG_STATUS_ALL )
         {
-			include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
             $usersBlogs = Array();
             $blogs = new Blogs();
             $ids = Array();



More information about the pLog-svn mailing list