From 4457529a8be282b6fc36faa05f0ea287f734343f Mon Sep 17 00:00:00 2001 From: Gabriel P <16049869+gabpnr@users.noreply.github.com> Date: Tue, 20 Mar 2018 02:17:40 +0100 Subject: [PATCH] Fix issue 966 dot array in old() function Signed-off-by: Gabriel P <16049869+gabpnr@users.noreply.github.com> --- system/HTTP/IncomingRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/HTTP/IncomingRequest.php b/system/HTTP/IncomingRequest.php index ddc5b24dd5a1..29beb766a21d 100755 --- a/system/HTTP/IncomingRequest.php +++ b/system/HTTP/IncomingRequest.php @@ -494,13 +494,13 @@ public function getOldInput(string $key) helper('array'); // Check for an array value in POST. - if (dot_array_search($key, $_SESSION['_ci_old_input']['post'])) + if (isset($_SESSION['_ci_old_input']['post']) && dot_array_search($key, $_SESSION['_ci_old_input']['post'])) { return dot_array_search($key, $_SESSION['_ci_old_input']['post']); } // Check for an array value in GET. - if (dot_array_search($key, $_SESSION['_ci_old_input']['get'])) + if (isset($_SESSION['_ci_old_input']['get']) && dot_array_search($key, $_SESSION['_ci_old_input']['get'])) { return dot_array_search($key, $_SESSION['_ci_old_input']['get']); }