diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 20:26:11 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 20:26:11 +0000 |
commit | 9669f8c5c994b9c7c5d960e5d920e97962f80322 (patch) | |
tree | 211bd2e5992774c938043b0f3c8f4ecf2bf3dde0 /src/Bridge.php | |
parent | 892aab166e5060e3c28c26953a62bc4632f3709b (diff) |
Updated test.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6680 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/Bridge.php')
-rw-r--r-- | src/Bridge.php | 7 |
1 files changed, 4 insertions, 3 deletions
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) { |