Use Joomla subform on PHP older than 5.5
Works as expected
Fatal error: Can't use function return value in write context in /home/content/76/10380776/html/imbarcoimmediato/layouts/joomla/form/field/subform/repeatable-table.php on line 59
Joomla 3.9.3, PHP 5.4.19 (it's a client website)
The line of code causing the error is here https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/form/field/subform/repeatable-table.php#L59 . According to php manual http://php.net/manual/en/function.empty.php:
Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error
Maybe we can change if (!empty(JText::($field->description))) to if (JText::($field->description) !== '') or add a new variable to store JText::_($field->description) before passing it to empty call
Labels |
Added:
?
|
Closed_Date | 2019-02-22 16:37:20 | ⇒ | 2019-02-22 16:37:21 |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-22 16:37:20 |
Closed_By | ⇒ | Quy |
Please test PR #23984
Please test PR #23984
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23982