summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-16 14:47:02 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-16 14:47:02 +0200
commite0f11bb3ada4171f186bf92e4bf8995e2b2d8944 (patch)
tree8592c3d10d513d34c2bc8062504d205bf0fe4b4d /application
parent64f06783085551dc8dbcd6a4392deaf3b23c47ca (diff)
Update negativ return check of session userdata for CI3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/controllers/Main.php4
-rw-r--r--application/service/multipaste_queue.php2
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 = [];
}