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