summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 18:26:40 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 18:26:40 +0000
commita28bdd669d2fc5c97f878f528991667180c5cf11 (patch)
tree34f474cb5ba3ca763086ef92d1a40a0a7b98477b
parent1659a30e55af53b9b9e9208e8e25e9d43802c402 (diff)
Check for null post id.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6666 67b53d14-2c14-4ace-a08f-0dab2b34000c
-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);