[pLog-svn] r1981 - plog/branches/plog-1.0.1/class/dao
Oscar Renalias
phunkphorce at gmail.com
Tue May 10 14:14:47 GMT 2005
Wow, great work! But how did you figure this one out??
Oscar
On 5/10/05, jondaley at devel.plogworld.net <jondaley at devel.plogworld.net> wrote:
> Author: jondaley
> Date: 2005-05-10 13:59:34 +0000 (Tue, 10 May 2005)
> New Revision: 1981
>
> Modified:
> plog/branches/plog-1.0.1/class/dao/blogs.class.php
> Log:
> GetRows is not doing what I think people expected it to do. Thus getAllBlogIds was not returning a simple array of ids, but rather an array of arrays, and thus cachecontrol::resetAllCaches was not resetting anything. This should solve a number of problems with people not being able to easily erase their tmp/blogId directories, as now updates to the admin interface will properly erase the files.
>
> Modified: plog/branches/plog-1.0.1/class/dao/blogs.class.php
> ===================================================================
> --- plog/branches/plog-1.0.1/class/dao/blogs.class.php 2005-05-10 11:30:53 UTC (rev 1980)
> +++ plog/branches/plog-1.0.1/class/dao/blogs.class.php 2005-05-10 13:59:34 UTC (rev 1981)
> @@ -430,8 +430,11 @@
> if( !$result )
> return Array();
>
> - // return all the rows straight from adodb
> - return( $result->GetRows());
> + $blogIds = Array();
> + while( $row = $result->FetchRow()) {
> + $blogIds[] = $row['id'];
> + }
> + return $blogIds;
> }
>
> /**
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list