[pLog-svn] r3084 - plog/trunk/class/dao/userdata
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sat Mar 18 14:50:46 GMT 2006
Author: oscar
Date: 2006-03-18 14:50:46 +0000 (Sat, 18 Mar 2006)
New Revision: 3084
Modified:
plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php
Log:
fixed an issue that ended up surfacing when doing validation of the user picture.
Modified: plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php
===================================================================
--- plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php 2006-03-18 14:48:55 UTC (rev 3083)
+++ plog/trunk/class/dao/userdata/phpbb2userdataprovider.class.php 2006-03-18 14:50:46 UTC (rev 3084)
@@ -184,13 +184,11 @@
$row["about"] = $plogPhpBB2Data["about"];
$row["full_name"] = $plogPhpBB2Data["full_name"];
$row["resource_picture_id"] = $plogPhpBB2Data["resource_picture_id"];
+ if( $row["resource_picture_id"] == "" ) $row["resource_picture_id"] = 0;
$row["properties"] = serialize(Array());
$row["id"] = $row["user_id"];
$row["status"] = ($row["user_active"] > 0) ? USER_STATUS_ACTIVE : USER_STATUS_DISABLED;
-
- //$perms = new UserPermissions();
- //$row["site_admin"] = $perms->isSiteAdmin( $row["user_id"] );
-
+ $row["site_admin"] = $row["user_level"];
// does this phpbb user have a blog yet? If so, create one if the configuration
// of the user data provider says so
@@ -205,9 +203,9 @@
$this->phpBB2AddBlog( $row );
$userInfo->setBlogs( $this->getUsersBlogs( $userInfo->getId()));
}
- else {
- $this->log->debug("he already has one!!!");
- }
+ else {
+ $this->log->debug("he already has one!!!");
+ }
}
else {
$userInfo = BaseUserDataProvider::mapRow( $row );
More information about the pLog-svn
mailing list