Skip to content
Verified Commit abfccffb authored by Arne Jørgensen's avatar Arne Jørgensen
Browse files

Make sure configured cache lifetime option is an integer

In 2bee363d we made sure the configured
cache lifetime _must_ be an integer (using `is_int()`).

Unfortunately the form submits a string even if the value was an
integer and that git stored in the config system as string.

This change:

* converts the submitted value to an integer before storing it
  in the config system
* ensures the configured value is a numeric instead of an integer before
  converting it to integer and using it
* updates already stored numeric strings to integers in the config system
parent 2bee363d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment