Ver código fonte

#4926 Accounts: SSO column

Alex Trofimov 1 ano atrás
pai
commit
f563f7cff8

+ 6 - 0
modules/boonex/facebook_connect/classes/BxFaceBookConnectDb.php

@@ -62,6 +62,12 @@ class BxFaceBookConnectDb extends BxBaseModConnectDb
         return $iProfileId;
         return $iProfileId;
     }
     }
 
 
+    function getRemoteProfileId($iLocalId)
+    {
+        $sQuery = $this->prepare ("SELECT `fb_profile` FROM `{$this -> sTablePrefix}accounts` WHERE `id_profile` = ? LIMIT 1", (int)$iLocalId);
+        return $this->getOne($sQuery);
+    }
+
     /**
     /**
      *  Save new Fb uid
      *  Save new Fb uid
      *
      *