Просмотр исходного кода

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

AntonLV 3 лет назад
Родитель
Сommit
0759bed29b
1 измененных файлов с 2 добавлено и 4 удалено
  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)
             $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))
             return false;
 
@@ -306,8 +305,7 @@ class BxBaseServiceConnections extends BxDol
         if(!$iProfileId && bx_get('profile_id') !== false)
             $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))
             return false;