mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Cast var to int for comparison
This commit is contained in:
parent
cb1d80fda1
commit
c00579153b
1 changed files with 1 additions and 1 deletions
|
@ -855,7 +855,7 @@ class CakeResponse {
|
|||
}
|
||||
|
||||
$this->maxAge($time);
|
||||
if ($time === null) {
|
||||
if ((int)$time === 0) {
|
||||
$this->_setCacheControl();
|
||||
}
|
||||
return (bool)$public;
|
||||
|
|
Loading…
Reference in a new issue