From 041b1f77bda0c0d5f9e1ad82b07c21f31f144a6a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 06:00:54 +0100 Subject: fixed type, reverted last changes --- paste/include/storage/MysqlStorage.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/paste/include/storage/MysqlStorage.php b/paste/include/storage/MysqlStorage.php index bae4855..49af59e 100644 --- a/paste/include/storage/MysqlStorage.php +++ b/paste/include/storage/MysqlStorage.php @@ -71,11 +71,7 @@ INDEX (nick) function __destruct() { - if (is_null($this->mysql)) - return; - $this->mysql->close(); - $this->mysql = null; } public function setContent($content, $language, $nick, $description) @@ -122,7 +118,7 @@ INDEX (nick) die('No such paste'); } - $shmt->close(); + $stmt->close(); echo PastifyText($content, $lang, $description); } -- cgit v1.2.3