[pLog-svn] r2823 - plog/trunk/class/dao/userdata
Oscar Renalias
oscar at renalias.net
Thu Jan 19 20:33:58 GMT 2006
Yeah I saw that once in the debug logs but didn't get round to it yet.
As Jon says, it probably is a problem with the constant. Since it
needs to be defined, how about moving class/dao/blogstatus.class.php
to the top of the file instead of class/dao/blogs.class.php? After
all, it's blogstatus.class.php the one that defines the posible
statuses for blogs...
Oscar
On 19 Jan 2006, at 21:31, Mark Wu wrote:
> 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
>
> _______________________________________________
> 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