diff options
-rw-r--r-- | application/controllers/Main.php | 4 | ||||
-rw-r--r-- | application/service/multipaste_queue.php | 2 |
2 files changed, 3 insertions, 3 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"); } diff --git a/application/service/multipaste_queue.php b/application/service/multipaste_queue.php index 453ea3429..553e9a6c2 100644 --- a/application/service/multipaste_queue.php +++ b/application/service/multipaste_queue.php @@ -73,7 +73,7 @@ class multipaste_queue { */ public function get() { $ids = $this->session->userdata("multipaste_queue"); - if ($ids === false) { + if ($ids === NULL) { $ids = []; } |