diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Bridge.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Bridge.php b/src/Bridge.php index 537fb5c..63d4ff0 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -54,6 +54,10 @@ class Bridge { } public function setMessageIdIfAbsent($messageId) { + if ($messageId === null) { + trigger_error('messageId === null', E_USER_ERROR); + } + $sql = 'INSERT IGNORE INTO posts (message_id) VALUES (' . $this->db->quote($messageId) . ')'; |