Tried.
Mark all readed, and mark thread readed is not working. It is a problem
Debugged:
in this function, when it will be called from MARK ALL READED action, input parameter $threadid is zero, but $forumcache["$forumid"]['lastthreadid'] is not working:
function mark_thread_read($threadid,$forumid=0,$unique=0) {
global $DB_site,$forumcache,$bbuserinfo;
$m_thread = intval($threadid);
if ($m_thread == 0 && $forumid > 0) {
$m_thread = intval($forumcache["$forumid"]['lastthreadid']);
}
echo("$m_thread $forumid.<br>");
$m_thread is always zero. As a result follows (next lines in listed function) SQL query will never works.
Can you advise please?
P.S. I am using 3.0.1
|