joomla/joomla-platform — pull request #570 by elinw (2011-11-30 19:21:48+00:00)
Title: Fix a problem with the close method in the MySQLi driver.

If no actual connection exists (even though the object exists) and you try to close the connection you get a warning. This adds a check to see if the connection is null before trying to close.