summaryrefslogtreecommitdiffstats
path: root/application/core
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-06 16:43:58 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-01 17:26:31 +0100
commita0507bfaef62dd3ef8589e205114ee57471c1a5f (patch)
tree352cea2b89071897523054896e0a418089415390 /application/core
parentb8890e5758a077e123ea9e1d5f07e55ce94d9deb (diff)
Only check for multipaste queue when session is avaiable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/core')
-rw-r--r--application/core/MY_Controller.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index b9b75b82f..078a4faa1 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -104,7 +104,9 @@ class MY_Controller extends CI_Controller {
$this->load->model("muser");
$this->data["user_logged_in"] = $this->muser->logged_in();
$this->data['redirect_uri'] = $this->uri->uri_string();
- $this->data['show_multipaste_queue'] = !empty((new \service\multipaste_queue)->get());
+ if ($this->muser->has_session()) {
+ $this->data['show_multipaste_queue'] = !empty((new \service\multipaste_queue)->get());
+ }
}
protected function _require_cli_request()