use the static function randomstring instead of the egw->common object (which may not be instanciated at the time)

This commit is contained in:
Klaus Leithoff 2008-08-29 13:34:41 +00:00
parent 1d48d7d217
commit 5db4d77067

View File

@ -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']))
{