mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +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…
Add table
Reference in a new issue