Skip to content

Commit

Permalink
Fix the __destruct method in mysqli so that it works when the mysqli …
Browse files Browse the repository at this point in the history
…object ($this->connection) gets destructed before the JDatabaseMysqli.
  • Loading branch information
elinw committed Dec 13, 2011
1 parent d200fbd commit e06304e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function __construct($options)
* @since 11.1
*/
public function __destruct()
{
{
if (is_callable($this->connection, 'close'))
{
mysqli_close($this->connection);
Expand Down

0 comments on commit e06304e

Please sign in to comment.