summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-02 19:36:09 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-02 19:36:09 +0800
commitb3c756a689cb39cc7f0d79b2da9876bb33a7062b (patch)
tree4a49f9451bf5f508a3ef90eb25b66571518f9eda
parentb3c064e52a5b1ef26a7c79033a4e79cf11cca770 (diff)
downloadpttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.tar
pttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.tar.gz
pttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.tar.bz2
pttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.tar.lz
pttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.tar.xz
pttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.tar.zst
pttbbs-b3c756a689cb39cc7f0d79b2da9876bb33a7062b.zip
* check post is deleted before do_voteboardreply. thanks report from herman602@ptt
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4897 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 87ed4403..7de14f09 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -2495,11 +2495,6 @@ recommend(int ent, fileheader_t * fhdr, const char *direct)
vmsg("您權限不足, 無法推薦!"); // "(可按大寫 I 查看限制)"
return FULLUPDATE;
}
- if ((bp->brdattr & BRD_VOTEBOARD) || (fhdr->filemode & FILE_VOTE))
- {
- do_voteboardreply(fhdr);
- return FULLUPDATE;
- }
#ifdef SAFE_ARTICLE_DELETE
if (fhdr->filename[0] == '.') {
@@ -2508,6 +2503,12 @@ recommend(int ent, fileheader_t * fhdr, const char *direct)
}
#endif
+ if ((bp->brdattr & BRD_VOTEBOARD) || (fhdr->filemode & FILE_VOTE))
+ {
+ do_voteboardreply(fhdr);
+ return FULLUPDATE;
+ }
+
#ifndef DEBUG
if (!CheckPostRestriction(currbid))
{