[pLog-svn] r2239 - plog/trunk/class/dao/userdata

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Jun 15 19:22:52 GMT 2005


Author: oscar
Date: 2005-06-15 19:22:52 +0000 (Wed, 15 Jun 2005)
New Revision: 2239

Modified:
   plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php
Log:
this seems to work fine now!


Modified: plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php
===================================================================
--- plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php	2005-06-15 17:23:09 UTC (rev 2238)
+++ plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php	2005-06-15 19:22:52 UTC (rev 2239)
@@ -118,6 +118,8 @@
 	        include_once( PLOG_CLASS_PATH."class/dao/userpermissions.class.php" );
 	        
 	        $query = "SELECT * FROM ".$this->_phpbbprefix."users WHERE user_id = '".Db::qstr( $userid )."'";
+
+//print("user__id = $userid");
 	                  
 	        $result = $this->_dbc->Execute( $query );
 	        
@@ -158,7 +160,7 @@
             $article = new Article( $articleTopic, 
                                     $articleText, 
                                     Array( $catId ), 
-                                    $this->_ownerId, 
+                                    $row["user_id"], 
                                     $newBlogId, 
                                     POST_STATUS_PUBLISHED, 
                                     0, 
@@ -175,7 +177,7 @@
 	        include_once( PLOG_CLASS_PATH."class/dao/userpermissions.class.php" );
 	        
 	        $plogPhpBB2Data = $this->getpLogPHPBBUserData( $row["user_id"] );
-	        
+
 	        $row["user"] = $row["username"];
 	        $row["password"] = $row["user_password"];
 	        $row["email"] = $row["user_email"];
@@ -203,6 +205,9 @@
 			        $this->phpBB2AddBlog( $row );
 			        $userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
      			}
+			else {
+				$this->log->debug("he already has one!!!");
+			}
 	        }
 	        else {
 		        $userInfo = BaseUserDataProvider::_mapUserInfoObject( $row );




More information about the pLog-svn mailing list