|
|
@@ -60,15 +60,16 @@ class BxSEMigData
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns transferred Una's profile id of transferred Social Engine's member
|
|
|
- * @param int $iSEId social engine's profile ID
|
|
|
+ * Returns content id of transferred Social Engine's member
|
|
|
+ * @param int $iSEId social engine's profile ID
|
|
|
* @return Integer
|
|
|
*/
|
|
|
|
|
|
- protected function getProfileId($iSEId){
|
|
|
- return (int)$this -> _oDb -> getOne("SELECT `p`.`content_id` FROM `sys_accounts` AS `a`
|
|
|
+ protected function getContentId($iSEId){
|
|
|
+ $sQuery = $this -> _oDb -> prepare("SELECT `p`.`content_id` FROM `sys_accounts` AS `a`
|
|
|
LEFT JOIN `sys_profiles` AS `p` ON `a`.`id` = `p`.`account_id`
|
|
|
- WHERE `se_id` = '{$iSEId}' AND `p`.`type` = 'bx_persons' LIMIT 1");
|
|
|
+ WHERE `se_id` = ? AND `p`.`type` = 'bx_persons' LIMIT 1", $iSEId);
|
|
|
+ return $this -> _oDb -> getOne($sQuery);
|
|
|
}
|
|
|
}
|
|
|
|