mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 03:11:40 +01:00
reverting 2 changes around sessions which break our installation
checking for the not existing (new) database runs into an invinit recursion the checks not to use $_SESSION, if no session is active was added in an attempt to get SimpleSAMLphp discovery working, but seems unneccessary for what we currently use
This commit is contained in:
parent
54e1a93b38
commit
e996b2c0cf
@ -402,7 +402,7 @@ class Cache
|
|||||||
*/
|
*/
|
||||||
static public function &getSession($app,$location,$callback=null,array $callback_params=array(),$expiration=0)
|
static public function &getSession($app,$location,$callback=null,array $callback_params=array(),$expiration=0)
|
||||||
{
|
{
|
||||||
if (!isset($_SESSION) || isset($_SESSION[Session::EGW_SESSION_ENCRYPTED]))
|
if (isset($_SESSION[Session::EGW_SESSION_ENCRYPTED]))
|
||||||
{
|
{
|
||||||
if (Session::ERROR_LOG_DEBUG) error_log(__METHOD__.' called after session was encrypted --> ignored!');
|
if (Session::ERROR_LOG_DEBUG) error_log(__METHOD__.' called after session was encrypted --> ignored!');
|
||||||
return null; // can no longer store something in the session, eg. because commit_session() was called
|
return null; // can no longer store something in the session, eg. because commit_session() was called
|
||||||
|
@ -585,7 +585,7 @@ class Db
|
|||||||
{
|
{
|
||||||
foreach(get_included_files() as $file)
|
foreach(get_included_files() as $file)
|
||||||
{
|
{
|
||||||
if (strpos($file,'adodb') !== false && !in_array($file,(array)$_SESSION['egw_required_files']) && isset($_SESSION))
|
if (strpos($file,'adodb') !== false && !in_array($file,(array)$_SESSION['egw_required_files']))
|
||||||
{
|
{
|
||||||
$_SESSION['egw_required_files'][] = $file;
|
$_SESSION['egw_required_files'][] = $file;
|
||||||
//error_log(__METHOD__."() egw_required_files[] = $file");
|
//error_log(__METHOD__."() egw_required_files[] = $file");
|
||||||
|
Loading…
Reference in New Issue
Block a user