From e0f11bb3ada4171f186bf92e4bf8995e2b2d8944 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 16 Sep 2017 14:47:02 +0200 Subject: Update negativ return check of session userdata for CI3 Signed-off-by: Florian Pritz --- application/controllers/Main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application/controllers/Main.php') diff --git a/application/controllers/Main.php b/application/controllers/Main.php index b1ec81710..19cb63d4f 100644 --- a/application/controllers/Main.php +++ b/application/controllers/Main.php @@ -376,7 +376,7 @@ class Main extends MY_Controller { $this->muser->require_session(); // keep the upload but require the user to login $last_upload = $this->session->userdata("last_upload"); - if ($last_upload === false) { + if ($last_upload === NULL) { $last_upload = array( "ids" => [], "lexer" => "", @@ -778,7 +778,7 @@ class Main extends MY_Controller { $last_upload = $this->session->userdata("last_upload"); - if ($last_upload === false) { + if ($last_upload === NULL) { throw new \exceptions\PublicApiException("file/claim_id/last_upload-failed", "Failed to get last upload data, unable to claim uploads"); } -- cgit v1.2.3-24-g4f1b