From e24ceb9bdebd8d8b3ff76be111dfca00a2dcc6a1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Sep 2013 12:04:59 +0200 Subject: Only renew uri flashdata when needed. This saves us 2 to 4 (useless) db queries per page. Signed-off-by: Florian Pritz --- application/models/muser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.3-24-g4f1b