From 078816f030c368267d6636a604a86dedac78e309 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 05:56:13 +0100 Subject: fixed bug if no object --- paste/include/storage/MysqlStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste') diff --git a/paste/include/storage/MysqlStorage.php b/paste/include/storage/MysqlStorage.php index fa8a9de..4c713bc 100644 --- a/paste/include/storage/MysqlStorage.php +++ b/paste/include/storage/MysqlStorage.php @@ -71,7 +71,7 @@ INDEX (nick) function __destruct() { - if ($this->mysql) + if (is_instance_of($this->mysql, 'mysqli')) $this->mysql->close(); } -- cgit v1.2.3