Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Deprecated: Unparenthesized #100

Open
Taylory174 opened this issue Nov 14, 2020 · 2 comments
Open

[BUG]Deprecated: Unparenthesized #100

Taylory174 opened this issue Nov 14, 2020 · 2 comments
Assignees
Labels

Comments

@Taylory174
Copy link

Описание ошибки:

Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/public_html/engine/modules/uniform/cfg.php on line 10

При каких условиях воспроизводится ошибка:

После отправки сообщения формы customheader и обновлении страницы

Вносились ли модификации в движок: модификации не вносились, скорей всего из за версии php

Версия DLE: dle 14.1

Версия PHP: PHP 7.4

Конфиг шаблона:

templateFolder = customheader
// nocache = y
// debug = y
required = textarea, email, phone, header
selectFields = calltime
sendmail = y
emails = talory174@gmail.com
@Taylory174
Copy link
Author

Изменил на

'formConfig' => !empty($formConfig) ? $formConfig : ((isset($_REQUEST['formConfig'])) ? $_REQUEST['formConfig'] : 'feedback'),
'role' => !empty($role) ? $role : ((isset($arConf['role'])) ? $arConf['role'] : 'feedback'),
'templateFolder' => !empty($templateFolder) ? $templateFolder : ((isset($arConf['templateFolder'])) ? $arConf['templateFolder'] : 'feedback'),
'nocache' => !empty($nocache) ? $nocache : ((isset($arConf['nocache'])) ? $arConf['nocache'] : false),
'debug' => !empty($debug) ? $debug : ((isset($arConf['debug'])) ? $arConf['debug'] : false),
'required' => !empty($required) ? $required : ((isset($arConf['required'])) ? $arConf['required'] : false),
'hidden' => !empty($hidden) ? $hidden : ((isset($arConf['hidden'])) ? $arConf['hidden'] : false),
'sendmail' => !empty($sendmail) ? $sendmail : ((isset($arConf['sendmail'])) ? $arConf['sendmail'] : false),
'emails' => !empty($emails) ? $emails : ((isset($arConf['emails'])) ? $arConf['emails'] : false),
'selectFields' => !empty($selectFields) ? $selectFields : ((isset($arConf['selectFields'])) ? $arConf['selectFields'] : false),
'checkboxFields' => !empty($checkboxFields) ? $checkboxFields : ((isset($arConf['checkboxFields'])) ? $arConf['checkboxFields'] : false),
'radioFields' => !empty($radioFields) ? $radioFields : ((isset($arConf['radioFields'])) ? $arConf['radioFields'] : false),
'sendAsPlain' => !empty($sendAsPlain) ? true : ((isset($arConf['sendAsPlain'])) ? true : false),
'sendToAuthor' => !empty($sendToAuthor) ? true : ((isset($arConf['sendToAuthor'])) ? true : false),
'sendToSender' => !empty($sendToSender) ? true : ((isset($arConf['sendToSender'])) ? true : false),
'allowAttachments' => !empty($allowAttachments) ? true : ((isset($arConf['allowAttachments'])) ? true : false),
'maxFileSize' => !empty($maxFileSize) ? $maxFileSize : ((isset($arConf['maxFileSize'])) ? $arConf['maxFileSize'] : false),
'allowedFileTypes' => !empty($allowedFileTypes) ? $allowedFileTypes : ((isset($arConf['allowedFileTypes'])) ? $arConf['allowedFileTypes'] : false),
'parseSendMail' => !empty($parseSendMail) ? $parseSendMail : ((isset($arConf['parseSendMail'])) ? $arConf['parseSendMail'] : false),

@pafnuty
Copy link
Member

pafnuty commented Nov 15, 2020

@Taylory174 внесу изменения при возможности.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants