Przeglądaj źródła

Ticket #4148 - Build-in API support: Browse profile/context connections.

AntonLV 3 lat temu
rodzic
commit
0759bed29b
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      template/scripts/BxBaseServiceConnections.php

+ 2 - 4
template/scripts/BxBaseServiceConnections.php

@@ -267,8 +267,7 @@ class BxBaseServiceConnections extends BxDol
         if(!$iProfileId && bx_get('profile_id') !== false)
         if(!$iProfileId && bx_get('profile_id') !== false)
             $iProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
             $iProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
 
 
-        $oProfile = BxDolProfile::getInstance($iProfileId);
-        $aProfile = $oProfile->getInfo();
+        $aProfile = BxDolProfile::getInstance($iProfileId)->getInfo();
         if(empty($aProfile) || !is_array($aProfile))
         if(empty($aProfile) || !is_array($aProfile))
             return false;
             return false;
 
 
@@ -306,8 +305,7 @@ class BxBaseServiceConnections extends BxDol
         if(!$iProfileId && bx_get('profile_id') !== false)
         if(!$iProfileId && bx_get('profile_id') !== false)
             $iProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
             $iProfileId = bx_process_input(bx_get('profile_id'), BX_DATA_INT);
 
 
-        $oProfile = BxDolProfile::getInstance($iProfileId);
-        $aProfile = $oProfile->getInfo();
+        $aProfile = BxDolProfile::getInstance($iProfileId)->getInfo();
         if(empty($aProfile) || !is_array($aProfile))
         if(empty($aProfile) || !is_array($aProfile))
             return false;
             return false;