contact modal updated

This commit is contained in:
Cihan Şentürk
2022-06-07 17:19:49 +03:00
parent 688363f7b4
commit 9e77c9e5d5
9 changed files with 346 additions and 47 deletions

View File

@ -132,8 +132,8 @@ class Contact extends Component
protected function getTextCreateNewContact($type, $textCreateNewContact)
{
if (!empty($textCreateNewContact)) {
return $textCreateNewContact;
if (!empty($textCreateNewContact) && is_array($textCreateNewContact)) {
return trans($textCreateNewContact[0], ['type' => trans_choice($textCreateNewContact[1], 1)]);
}
switch ($type) {