From 3edea75fab772a355640e69f44bd119a48e86bb9 Mon Sep 17 00:00:00 2001 From: arzynik Date: Fri, 7 Sep 2012 08:59:51 -0700 Subject: [PATCH] fixed another posible session issue --- include/library/Crunchbutton/Session/Adapter.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/library/Crunchbutton/Session/Adapter.php b/include/library/Crunchbutton/Session/Adapter.php index 6bbae5ecd..0004e5751 100644 --- a/include/library/Crunchbutton/Session/Adapter.php +++ b/include/library/Crunchbutton/Session/Adapter.php @@ -45,7 +45,12 @@ class Crunchbutton_Session_Adapter extends Cana_Table { $sess = new Session_Adapter($id); try { - $this->save($sess->id_session ? null : $id); + if ($sess->id_session) { + $this->save(); + } else { + $this->save($id); + } + } catch (Exception $e) {} }