1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-05 05:55:15 +02:00

Fix failure in SQL when deleting forums

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3241 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-12-22 16:39:41 +00:00
parent 3dcd73abaf
commit 28616070f9

View File

@ -612,7 +612,7 @@ if( !empty($mode) )
// Delete polls in this forum
$sql = "SELECT v.vote_id
FROM " . VOTE_DESC_TABLE . " v, " . TOPICS_TABLE . " t
WHERE t.forum_id = $forum_id
WHERE t.forum_id = $from_id
AND v.topic_id = t.topic_id";
if (!($result = $db->sql_query($sql)))
{