We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 68347691 authored by Craig Andrews's avatar Craig Andrews

Don't attempt to retrieve the current user from the DB while processing a DB error

parent a0114f20
......@@ -92,6 +92,12 @@ function handleError($error)
|| $error instanceof DB_Error
|| ($error instanceof PEAR_Exception && $error->getCode() == -24)
) {
//If we run into a DB error, assume we can't connect to the DB at all
//so set the current user to null, so we don't try to access the DB
//while rendering the error page.
global $_cur;
$_cur = null;
$msg = sprintf(
'The database for %s isn\'t responding correctly, '.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment