From 0273559aa7f25e365f269e7c76cb7dc29500775d Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 15 May 2008 14:10:22 +0000 Subject: [PATCH] Session: Change getInstance to create a new session by default. Most of the places which currently call getInstance without a parameter expects a session to be returned. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@564 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index 673160338..17d1fca47 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -106,7 +106,7 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo { } - public static function getInstance($allowcreate = false) { + public static function getInstance($allowcreate = TRUE) { /* Check if we already have initialized the session. */ if (isset(self::$instance)) { @@ -140,7 +140,7 @@ class SimpleSAML_Session implements SimpleSAML_ModifiedInfo { public static function init($authenticated = false, $authority = null) { - $preinstance = self::getInstance(); + $preinstance = self::getInstance(FALSE); if (isset($preinstance)) { -- GitLab