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

Mark Wu markplace at gmail.com
Thu Jan 19 19:31:14 GMT 2006


Hi Oscar:

Kindly take a look at this. This bug is really weird. 

I have to move include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
from getBlogUsers() method to the head of file, because it makes the blog
selection works well..
** The query string is SELECT * FROM lt_blogs WHERE owner_id = 1 AND status
= '1'

If I remian it inside the function. The, the blog selection works abnormal.
** The query string is SELECT * FROM lt_blogs WHERE owner_id = 1 AND status
= 'BLOG_STATUS_ACTIVE' , but sometimes is normal...

No idea ... :(

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> mark at devel.lifetype.net
> Sent: Friday, January 20, 2006 3:13 AM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r2823 - plog/trunk/class/dao/userdata
> 
> 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();
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list