diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 06:00:54 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 06:00:54 +0100 |
commit | 041b1f77bda0c0d5f9e1ad82b07c21f31f144a6a (patch) | |
tree | 27f3f4b7765a8fa0d74b7a4003001636439bcbc9 | |
parent | 76b65f0ce176e0162bc7eedef951d37e96179ee2 (diff) | |
download | rafb-nopaste-041b1f77bda0c0d5f9e1ad82b07c21f31f144a6a.tar.gz rafb-nopaste-041b1f77bda0c0d5f9e1ad82b07c21f31f144a6a.tar.xz rafb-nopaste-041b1f77bda0c0d5f9e1ad82b07c21f31f144a6a.zip |
fixed type, reverted last changes
Diffstat (limited to '')
-rw-r--r-- | paste/include/storage/MysqlStorage.php | 6 |
1 files changed, 1 insertions, 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); } |