Cast var to int for comparison

This commit is contained in:
Val Bancer 2018-11-18 18:22:19 +01:00
parent cb1d80fda1
commit c00579153b

View file

@ -855,7 +855,7 @@ class CakeResponse {
} }
$this->maxAge($time); $this->maxAge($time);
if ($time === null) { if ((int)$time === 0) {
$this->_setCacheControl(); $this->_setCacheControl();
} }
return (bool)$public; return (bool)$public;