summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Bridge.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Bridge.php b/src/Bridge.php
index 3b9b1b4..9dfd758 100644
--- a/src/Bridge.php
+++ b/src/Bridge.php
@@ -29,6 +29,10 @@ class Bridge {
}
public function setPostId($messageId, $postId) {
+ if ($messageId === null) {
+ trigger_error('message id is null', E_USER_ERROR);
+ }
+
$sql = 'UPDATE posts SET ' .
'post_id = ' . $postId . ' ' .
'WHERE message_id = ' . $this->db->quote($messageId);