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

#5460 Alerts logger: distinct vars passed by reference

Aleksandr Trofimov 6 месяцев назад
Родитель
Сommit
ddc71a3803

+ 2 - 1
modules/base/general/classes/BxBaseModGeneralFormsEntryHelper.php

@@ -644,7 +644,8 @@ class BxBaseModGeneralFormsEntryHelper extends BxDolProfileForms
          * @hook @ref hook-bx_base_general-deleted
          */
         $aAlertParams = [
-            'content' => &$aContentInfo
+            'content' => &$aContentInfo,
+            'content_ref' => &$aContentInfo
         ];
 
         if(!empty($CNF['FIELD_ALLOW_VIEW_TO']) && isset($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']]))

+ 1 - 1
modules/base/groups/classes/BxBaseModGroupsModule.php

@@ -2440,7 +2440,7 @@ class BxBaseModGroupsModule extends BxBaseModProfileModule
          */
         bx_alert('system', 'prepare_alert_params', 0, 0, [
             'unit'=> $sModule, 
-            
+
             'action' => &$sAction, 
             'object_id' => &$iId, 
             'sender_id' => &$iAuthorId, 

+ 3 - 1
template/scripts/BxBaseFormAccount.php

@@ -183,8 +183,10 @@ class BxBaseFormAccount extends BxTemplFormView
          */
         bx_alert('account', 'check_join', 0, false, [
             'error_msg' => &$sErrorMsg, 
+            'error_msg_ref' => &$sErrorMsg, 
             'email' => $this->getCleanValue('email'), 
-            'approve' => &$this->_bSetPendingApproval
+            'approve' => &$this->_bSetPendingApproval,
+            'approve_ref' => &$this->_bSetPendingApproval,
         ]);
         if ($sErrorMsg)
             $this->_setCustomError ($sErrorMsg);