diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-09-06 16:43:58 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-01 17:26:31 +0100 |
commit | a0507bfaef62dd3ef8589e205114ee57471c1a5f (patch) | |
tree | 352cea2b89071897523054896e0a418089415390 | |
parent | b8890e5758a077e123ea9e1d5f07e55ce94d9deb (diff) |
Only check for multipaste queue when session is avaiable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/core/MY_Controller.php | 4 |
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() |