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