diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-09-22 14:22:16 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-09-22 14:22:16 +0800 |
commit | 5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b (patch) | |
tree | e93095ce4bb3b9f6ca10a879ad427098d11a7fcf | |
parent | 1d204516ebf4c011db4b4fb4877f5f41d9e18278 (diff) | |
download | pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.tar pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.tar.gz pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.tar.bz2 pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.tar.lz pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.tar.xz pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.tar.zst pttbbs-5ad18b749fbbfc1f92bee765e4bd1566fcac4c4b.zip |
fix error of handling empty nbrd
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3568 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index e9267703..a7c5e382 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -556,7 +556,7 @@ show_brdlist(int head, int clsflag, int newflag) boardstat_t *ptr; char *unread[2] = {ANSI_COLOR(37) " " ANSI_RESET, ANSI_COLOR(1;31) "ˇ" ANSI_RESET}; - if (IS_LISTING_FAV() && get_data_number(get_current_fav()) == 0){ + if (IS_LISTING_FAV() && brdnum == 1 && get_fav_type(&nbrd[0]) == 0) { mouts(3, 0, " --- 空目錄 - 請按 a (add) 或 i (insert) 加入看板 ---"); return; } @@ -853,7 +853,7 @@ choose_board(int newflag) if(get_fav_type(&nbrd[0]) != 0) fav_tag(ptr->bid, get_fav_type(ptr), 2); } - else{ + else if (HasUserPerm(PERM_SYSOP)) { /* 站長管理用的 tag */ if (ptr->myattr & NBRD_TAG) set_attr(getadmtag(ptr->bid), FAVH_ADM_TAG, FALSE); |