Unset tries to unset a variable that is not set if the database connection fails. you get a warning at the top of the database connection failure page. Change
unset($_SESSION['messages']);
to

	if(isset($_SESSION['messages']))
		{
		unset($_SESSION['messages']);
		}
CommentFileSizeAuthor
#3 unset_1.patch440 byteschx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

peterx’s picture

This occurs on beta 6 and RC1.

chx’s picture

If one tries to unset a typical variable that does not exist, no errors, warning or noticies will occur. However, if one tries to unset a non-existent array or an array with non-existent key, this will result in a notic

you are right.

chx’s picture

FileSize
440 bytes

That can be fixed with minimal change...

chx’s picture

Status: Active » Reviewed & tested by the community

oh and the status

killes@www.drop.org’s picture

Status: Reviewed & tested by the community » Fixed

applied

Anonymous’s picture

Status: Fixed » Closed (fixed)