Skip to content

Commit b336193

Browse files
committed
Fixed: set_cookie: foreach not consistent with preceding comment
1 parent 1ed9078 commit b336193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Input.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public function set_cookie($name, $value = '', $expire = '', $domain = '', $path
366366
if (is_array($name))
367367
{
368368
// always leave 'name' in last place, as the loop will break otherwise, due to $$item
369-
foreach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'httponly', 'name', 'samesite') as $item)
369+
foreach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'httponly', 'samesite', 'name') as $item)
370370
{
371371
if (isset($name[$item]))
372372
{

0 commit comments

Comments
 (0)