diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-09-16 14:47:02 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-09-16 14:47:02 +0200 |
commit | e0f11bb3ada4171f186bf92e4bf8995e2b2d8944 (patch) | |
tree | 8592c3d10d513d34c2bc8062504d205bf0fe4b4d /application/controllers | |
parent | 64f06783085551dc8dbcd6a4392deaf3b23c47ca (diff) |
Update negativ return check of session userdata for CI3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/Main.php | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |