andre 3 месяцев назад
Родитель
Сommit
9afbeba336
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/UI/Client/DistributionList/Providers/EditListDataProvider.php

+ 2 - 2
app/UI/Client/DistributionList/Providers/EditListDataProvider.php

@@ -163,8 +163,8 @@ class EditListDataProvider extends AddListDataProvider
             'SenderThisList' => $lang->absoluteT('SenderThisList')
         ];
         // prevent in_array on null in update
-        $this->data['memberList'] ? $this->data['memberList'] : $this->data['memberList'] = array();
-        $this->data['memberListActually'] ? $this->data['memberListActually'] : $this->data['memberListActually'] = array();
+        $this->data['memberList'] == null ? $this->data['memberList'] = array() : $this->data['memberList'];
+        $this->data['memberListActually'] == null ? $this->data['memberListActually'] = array() : $this->data['memberListActually'];
         foreach($intMembers as $intMember) {
             $this->data['memberList'][] = $intMember;
         }