Skip to content

Commit 836d3d7

Browse files
committed
Use type checking instead of null coalescing
1 parent 45d1b86 commit 836d3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/HTTP/RedirectResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public function withInput()
9393
{
9494
$session = service('session');
9595
$session->setFlashdata('_ci_old_input', [
96-
'get' => $_GET,
97-
'post' => $_POST,
96+
'get' => is_array($_GET) ? $_GET : [],
97+
'post' => is_array($_POST) ? $_POST : [],
9898
]);
9999

100100
$this->withErrors();

0 commit comments

Comments
 (0)