summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 20:26:11 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 20:26:11 +0000
commit9669f8c5c994b9c7c5d960e5d920e97962f80322 (patch)
tree211bd2e5992774c938043b0f3c8f4ecf2bf3dde0 /src
parent892aab166e5060e3c28c26953a62bc4632f3709b (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')
-rw-r--r--src/Bridge.php7
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) {