[pLog-svn] r2823 - plog/trunk/class/dao/userdata
Mark Wu
markplace at gmail.com
Fri Jan 20 01:26:03 GMT 2006
I already modified with your suggestions (comit in SVN rev 2828), just put
the blogstatus.class.php in header of file instead of whole blogs.class.php.
I just have no idea, according to the blogs.class.php, the
blogstatus.class.php should loaded too.. And, I can approve it ...
I echo BLOG_STATUS_ACTIVE, it always show "1" without any problems ...
But, when I echo $owner (the squery statement), it show .....='1' sometimes
and ......='BLOG_STATUS_ACTIVE' sometimes ...
It does not make sense.
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> Oscar Renalias
> Sent: Friday, January 20, 2006 4:34 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r2823 - plog/trunk/class/dao/userdata
>
> 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
> >
>
> _______________________________________________
> 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