Fixed bug that marked a forum read even with unread topics.

このコミットが含まれているのは:
テクニカル諏訪子 2018-06-22 17:31:02 +09:00
コミット 45fe6c9d48
1個のファイルの変更1行の追加8行の削除

ファイルの表示

@ -51,6 +51,7 @@ class BoardController extends Controller {
}
else {
$valid = $this->objAuth->getPermissions($username, $password);
$yetToRead = false;
if ($valid['for_canview']) {
$isRead = array();
@ -66,8 +67,6 @@ class BoardController extends Controller {
}
foreach ($isRead as $r) {
$yetToRead = false;
$rid = 0;
if ($for != 0) {
@ -97,16 +96,10 @@ class BoardController extends Controller {
if ($g->post_date > $g->view_time) {
$yetToRead = true;
}
else {
$yetToRead = false;
}
}
}
}
}
else {
$yetToRead = false;
}
}
return $yetToRead;