Skip to content

Commit 9c0164a

Browse files
authored
Eliminate deprecation notice in logs
It was objecting to $expire not being is_numeric.
1 parent 348317b commit 9c0164a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookie/pi.cookie.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function set()
6565
{
6666
$name = ee()->TMPL->fetch_param('name');
6767
$value = ee()->TMPL->fetch_param('value');
68-
$expire = ee()->TMPL->fetch_param('expire');
68+
$expire = (int)ee()->TMPL->fetch_param('expire');
6969

7070
ee()->input->set_cookie($name, $value, $expire);
7171
}

0 commit comments

Comments
 (0)