Skip to content
This repository has been 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 opened this issue May 21, 2018 · 0 comments
Open

Debug is always on even though JOOMLA_DEBUG is false #361

raeldc opened this issue May 21, 2018 · 0 comments
Labels
Milestone

Comments

@raeldc
Copy link
Contributor

raeldc commented May 21, 2018

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.

@raeldc raeldc added the bug label May 21, 2018
@raeldc raeldc added this to the 2.0 milestone May 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant