summaryrefslogtreecommitdiffstats
path: root/paste/include
diff options
context:
space:
mode:
Diffstat (limited to 'paste/include')
-rw-r--r--paste/include/storage/MysqlStorage.php2
1 files changed, 1 insertions, 1 deletions
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();
}