[pLog-svn] r1981 - plog/branches/plog-1.0.1/class/dao

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Tue May 10 13:59:35 GMT 2005


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;
         }
 
         /**




More information about the pLog-svn mailing list