summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-04 12:04:59 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-04 12:06:34 +0200
commite24ceb9bdebd8d8b3ff76be111dfca00a2dcc6a1 (patch)
tree0e5c83e66c8e3154f8aeca88dbf43fd770317ddf /application
parent26e2f14fb02bc6dd3df3e516f57a51b628a2e4c2 (diff)
Only renew uri flashdata when needed.
This saves us 2 to 4 (useless) db queries per page. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/models/muser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index b3c16bf78..bb67bd6a0 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -15,7 +15,7 @@ class Muser extends CI_Model {
{
parent::__construct();
- if ($this->has_session()) {
+ if ($this->has_session() && !$this->logged_in()) {
$this->session->keep_flashdata("uri");
}