Index: pun_poll/manifest.xml --- pun_poll/manifest.xml.orig 2010-05-11 16:51:25.000000000 +0200 +++ pun_poll/manifest.xml 2010-05-11 17:10:04.000000000 +0200 @@ -688,7 +688,7 @@ 'SELECT' => 'id, answer', 'FROM' => 'answers', 'WHERE' => 'topic_id = '.$id, - 'GROUP BY' => 'id', + 'GROUP BY' => 'id, answer', 'ORDER BY' => 'id ASC' ); $result_pun_poll = $forum_db->query_build($query_pun_poll) or error(__FILE__, __LINE__); @@ -745,7 +745,7 @@ ) ), 'WHERE' => 'a.topic_id='.$id, - 'GROUP BY' => 'a.id', + 'GROUP BY' => 'a.id, a.answer', 'ORDER BY' => 'a.id' ); $result_pun_poll = $forum_db->query_build($query_pun_poll) or error(__FILE__, __LINE__); Index: pun_tags/functions.php --- pun_tags/functions.php.orig 2010-05-11 16:51:22.000000000 +0200 +++ pun_tags/functions.php 2010-05-11 17:10:04.000000000 +0200 @@ -128,10 +128,10 @@ 'JOINS' => array( array( 'LEFT JOIN' => 'topic_tags AS tt', - 'ON' => 't.id = tt.tag_id GROUP BY t.id' + 'ON' => 't.id = tt.tag_id GROUP BY t.id, t.tag' ) ), - 'HAVING' => 'cnt = 0' + 'HAVING' => 'COUNT(tt.tag_id) = 0' ); $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); Index: pun_tags/manifest.xml --- pun_tags/manifest.xml.orig 2010-05-11 16:51:22.000000000 +0200 +++ pun_tags/manifest.xml 2010-05-11 17:10:04.000000000 +0200 @@ -66,7 +66,7 @@ $query_pun_tags = array( 'SELECT' => '1', 'FROM' => 'config', - 'WHERE' => 'conf_name = "o_pun_tags_show"' + 'WHERE' => 'conf_name = \'o_pun_tags_show\'' ); $result_pun_tags = $forum_db->query_build($query_pun_tags) or error(__FILE__, __LINE__); if ($forum_db->num_rows($result_pun_tags) == 0) @@ -81,7 +81,7 @@ $query_pun_tags = array( 'SELECT' => '1', 'FROM' => 'config', - 'WHERE' => 'conf_name = "o_pun_tags_count_in_cloud"' + 'WHERE' => 'conf_name = \'o_pun_tags_count_in_cloud\'' ); $result_pun_tags = $forum_db->query_build($query_pun_tags) or error(__FILE__, __LINE__); if ($forum_db->num_rows($result_pun_tags) == 0)