From a0507bfaef62dd3ef8589e205114ee57471c1a5f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 6 Sep 2016 16:43:58 +0200 Subject: Only check for multipaste queue when session is avaiable Signed-off-by: Florian Pritz --- application/core/MY_Controller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3-24-g4f1b