At the beginning of file layouts\joomla\content\emptystate.php, some variables are initialized. Variables $title and $content are initialised twice. See below. Although this doesn't have any impact, it should be fixed.
$formURL = $displayData['formURL'] ?? '';
$createURL = $displayData['createURL'] ?? '';
$helpURL = $displayData['helpURL'] ?? '';
$title = $displayData['title'] ?? Text::_($textPrefix . 'EMPTYSTATE_TITLE'); <<<==========
$content = $displayData['content'] ?? Text::($textPrefix . 'EMPTYSTATE_CONTENT'); <<<==========
$icon = $displayData['icon'] ?? 'icon-copy article';
$append = $displayData['formAppend'] ?? '';
$title = $displayData['title'] ?? Text::($textPrefix . 'EMPTYSTATE_TITLE'); <<<==========
$content = $displayData['content'] ?? Text::($textPrefix . '_EMPTYSTATE_CONTENT'); <<<==========
$btnadd = $displayDat
Initialise any variable only once.
Delete the second initialisations
None.
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-04 01:42:37 |
Closed_By | ⇒ | Quy |
Please test #36937. Thanks.