diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 18:26:40 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 18:26:40 +0000 |
commit | a28bdd669d2fc5c97f878f528991667180c5cf11 (patch) | |
tree | 34f474cb5ba3ca763086ef92d1a40a0a7b98477b /src | |
parent | 1659a30e55af53b9b9e9208e8e25e9d43802c402 (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
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 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); |