fix for bug [ 998496 ] Session error on logout under https, session-id and loginid are unset, which leads to a pg_atoi: zero length string sql-error. I now dont save anything if there is no sessionid or no loginid

This commit is contained in:
Ralf Becker 2004-08-07 17:57:26 +00:00
parent 4346d06789
commit c22cba8574

View File

@ -134,6 +134,10 @@
function appsession($location = 'default', $appname = '', $data = '##NOTHING##') function appsession($location = 'default', $appname = '', $data = '##NOTHING##')
{ {
if (!$this->account_id || !$this->sessionid)
{
return False; // this can happen during login or logout
}
if (! $appname) if (! $appname)
{ {
$appname = $GLOBALS['phpgw_info']['flags']['currentapp']; $appname = $GLOBALS['phpgw_info']['flags']['currentapp'];