When the database connection fails for any reason, database.mysqli.inc uses mysqli_error() to retrieve the error message, which results in PHP warnings because mysqli_error() can't be used this way. The correct function to use is mysqli_connect_error() as done in HEAD.

Patch attached.

Comments

drumm’s picture

Status: Needs review » Fixed

Committed to 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.