|
From: Paul S. O. <ps...@us...> - 2001-11-15 22:09:23
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv15667
Modified Files:
posting.php
Log Message:
Fixed problem where deleting a post with a poll could error deletion of remaining posts
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -r1.97 -r1.98
*** posting.php 2001/11/15 21:38:09 1.97
--- posting.php 2001/11/15 22:09:20 1.98
***************
*** 1638,1641 ****
--- 1638,1651 ----
}
}
+ else if( !$is_last_post_topic )
+ {
+ $sql = "UPDATE " . TOPICS_TABLE . "
+ SET topic_vote = 0
+ WHERE topic_id = $topic_id";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't update topic poll field", "", __LINE__, __FILE__, $sql);
+ }
+ }
}
else
|