RomanL 6 лет назад
Родитель
Сommit
32fe2782ac
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      template/scripts/BxBaseAcl.php

+ 2 - 1
template/scripts/BxBaseAcl.php

@@ -29,9 +29,10 @@ class BxBaseAcl extends BxDolAcl
 
 		
 		$aCheck = checkActionModule($iLoggedProfileId, 'show membership private info', 'system', false);
+		$oProfile = BxDolProfile::getInstance($iLoggedProfileId);
 		
         $aTmplVarsPrivateInfo = array();
-        $bTmplVarsPrivateInfo = ((BxDolProfile::getInstance($iProfileId)->getAccountId() == BxDolProfile::getInstance($iLoggedProfileId)->getAccountId() || $aCheck[CHECK_ACTION_RESULT] === CHECK_ACTION_RESULT_ALLOWED) && !empty($aLevel['date_starts']));
+        $bTmplVarsPrivateInfo = ($oProfile && (BxDolProfile::getInstance($iProfileId)->getAccountId() == $oProfile->getAccountId() || $aCheck[CHECK_ACTION_RESULT] === CHECK_ACTION_RESULT_ALLOWED) && !empty($aLevel['date_starts']));
         if($bTmplVarsPrivateInfo)
             $aTmplVarsPrivateInfo = array(
                 'date_start' => bx_time_js($aLevel['date_starts']),