From 5db4d770671e968046c59d546b049399fd1fffd4 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 29 Aug 2008 13:34:41 +0000 Subject: [PATCH] use the static function randomstring instead of the egw->common object (which may not be instanciated at the time) --- phpgwapi/inc/class.egw_session.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.egw_session.inc.php b/phpgwapi/inc/class.egw_session.inc.php index 50084f9dbf..7b3ef70fba 100644 --- a/phpgwapi/inc/class.egw_session.inc.php +++ b/phpgwapi/inc/class.egw_session.inc.php @@ -184,10 +184,7 @@ class egw_session //extends sessions } if (!isset($GLOBALS['egw_info']['server']['install_id'])) { - if (isset($GLOBALS['egw']->common)) { - $GLOBALS['egw_info']['server']['install_id'] = md5($GLOBALS['egw']->common->randomstring(15)); - $save_rep = true; - } + $GLOBALS['egw_info']['server']['install_id'] = md5(common::randomstring(15)); } if (!isset($GLOBALS['egw_info']['server']['sessions_timeout'])) {