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