allow direct error messages instead of just error codes

This commit is contained in:
Ralf Becker 2008-08-07 20:35:57 +00:00
parent 94a263caf7
commit b599ae8d8b

View File

@ -78,8 +78,12 @@
$GLOBALS['egw']->session->egw_setcookie('domain'); $GLOBALS['egw']->session->egw_setcookie('domain');
return '<font color="red">' . lang('Your session could not be verified.') . '</font>'; return '<font color="red">' . lang('Your session could not be verified.') . '</font>';
default: default:
if (!$code)
{
return '&nbsp;'; return '&nbsp;';
} }
return htmlspecialchars($code);
}
} }
/* Program starts here */ /* Program starts here */