From 222ef63558938c27c38b302bfb6a4f71bcd4c1b0 Mon Sep 17 00:00:00 2001 From: uckelman Date: Fri, 16 Jul 2010 21:37:14 +0000 Subject: Added lists table for mapping forum ids to lists. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6993 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/Bridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Bridge.php') diff --git a/src/Bridge.php b/src/Bridge.php index b137b51..3b3ed51 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -65,7 +65,7 @@ class Bridge { public function getLists($forumId) { throw_if_null($forumId); - $sql = 'SELECT list_name FROM forums ' . + $sql = 'SELECT list_name FROM lists ' . 'WHERE forum_id = ' . $forumId; $result = $this->db->query($sql); @@ -133,6 +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); } -- cgit v1.2.3