diff options
author | uckelman <uckelman@nomic.net> | 2010-07-27 20:00:19 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-07-27 20:00:19 +0000 |
commit | 6e65556ce0dbecb7584fcbc3f927017bd92264e2 (patch) | |
tree | 51f2597fec3a46de446b47f379a2d92bc34a738e /src/Bridge.php | |
parent | de3dcd47edcf894d87e527536f9a776ca0126567 (diff) |
Don't barf on unrecognized messages. Unrecognized messages are probaly just ones which predate the list bridge.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7040 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/Bridge.php')
-rw-r--r-- | src/Bridge.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Bridge.php b/src/Bridge.php index 3b3ed51..ce1d7d8 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -133,10 +133,7 @@ class Bridge { $count = $this->db->exec($sql); -# FIXME: throwing an exception prevents us from deleting old posts - if ($count < 1) { - throw new Exception('Failed to delete post id: ' . $postId); - } + return $count > 0; } protected function get_exactly_one_row($sql) { |