Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Debug is always on even though JOOMLA_DEBUG is false #361

Open
@raeldc

Description

@raeldc

Problem:

Even when the environment variable JOOMLA_DEBUG is set to "false", the debug is still still turned on.

Diagnosis:

Getting JOOMLA_CACHE and JOOMLA_DEBUG from the environment returns a string, so if the configuration is set based on the value like "false" or "0", it will always be equivalent to true.

Solution:

Instead of setting the value as "false" or "true", it should be set to "0" or "1". Then the value should be converted into boolean through type casting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions