Skip to content

Can't use method return value in write context (PHP < 5.5) #506

@yblatti

Description

@yblatti

Fatal error: Can't use method return value in write context in /htmlbase/components/com_k2/views/item/view.html.php on line 468.

This comes from the use of empty() on a return value.
empty() can only be used on return from PHP>=5.5. (https://www.php.net/manual/en/function.empty.php)

Since Joomla! is still compatible with PHP 5.3.10+ (https://downloads.joomla.org/technical-requirements). I suggest we do the same here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions