summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 12:59:28 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 12:59:28 +0000
commitebae8d0e6a988599242d359b53fb09f3dde89867 (patch)
tree86630550259f04d14c1b3ea7fa986d5bf82f389e /src
parent980d59332e0f8208dcb27a7b4f754e41158c7dc3 (diff)
Check for null.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6640 67b53d14-2c14-4ace-a08f-0dab2b34000c
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 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) . ')';