From a28bdd669d2fc5c97f878f528991667180c5cf11 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 18:26:40 +0000 Subject: Check for null post id. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6666 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/Bridge.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3