[pLog-svn] r2806 - plog/trunk/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Tue Jan 17 19:49:08 GMT 2006


Author: oscar
Date: 2006-01-17 19:49:07 +0000 (Tue, 17 Jan 2006)
New Revision: 2806

Modified:
   plog/trunk/class/dao/userpermissions.class.php
Log:
Fixed the issue related to adding new users to a blog. It was an issue with the cache, well sort of, as I was caching too much data using the wrong cache id and then loading it thinking it was something else.

Modified: plog/trunk/class/dao/userpermissions.class.php
===================================================================
--- plog/trunk/class/dao/userpermissions.class.php	2006-01-17 19:23:47 UTC (rev 2805)
+++ plog/trunk/class/dao/userpermissions.class.php	2006-01-17 19:49:07 UTC (rev 2806)
@@ -49,8 +49,9 @@
             }
 			
 			// get all the user permissions from the db table
-			$userPerms = $this->getAll( "user_id",  
-			                            CACHE_USER_PERMISSIONS );
+			$userPerms = $this->getMany( "user_id",
+			                             $userId,
+			                             CACHE_USER_PERMISSIONS );
 			if( !is_array( $userPerms ))
 				$userPerms = Array();
 				



More information about the pLog-svn mailing list