From 9669f8c5c994b9c7c5d960e5d920e97962f80322 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 20:26:11 +0000 Subject: Updated test. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6680 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/Bridge.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Bridge.php') diff --git a/src/Bridge.php b/src/Bridge.php index e46013d..3884154 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -68,7 +68,6 @@ class Bridge { . $this->quote($references) . ')'; $count = $this->db->exec($sql); - return $count == 1; } @@ -78,9 +77,11 @@ class Bridge { $sql = 'DELETE FROM posts WHERE message_id = ' . $this->db->quote($messageId); - $coult = $this->db->exec($sql); + $count = $this->db->exec($sql); - return $count == 1; + if ($count != 1) { + throw new Exception('Failed to delete message id: ' . $messageId); + } } protected function get_exactly_one_row($sql) { -- cgit v1.2.3