|
@@ -456,7 +456,7 @@ function moveTopics($topics, $toBoard)
|
|
|
|
|
|
$SaveAServer = max(0, $modSettings['maxMsgID'] - 50000);
|
|
$SaveAServer = max(0, $modSettings['maxMsgID'] - 50000);
|
|
$request = $smcFunc['db_query']('', '
|
|
$request = $smcFunc['db_query']('', '
|
|
- SELECT lmr.id_member, lmr.id_msg, t.id_topic, lt.disregarded
|
|
+ SELECT lmr.id_member, lmr.id_msg, t.id_topic, IFNULL(lt.disregarded, 0) AS disregarded
|
|
FROM {db_prefix}topics AS t
|
|
FROM {db_prefix}topics AS t
|
|
INNER JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = t.id_board
|
|
INNER JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = t.id_board
|
|
AND lmr.id_msg > t.id_first_msg AND lmr.id_msg > {int:protect_lmr_msg})
|
|
AND lmr.id_msg > t.id_first_msg AND lmr.id_msg > {int:protect_lmr_msg})
|
|
@@ -471,7 +471,7 @@ function moveTopics($topics, $toBoard)
|
|
$log_topics = array();
|
|
$log_topics = array();
|
|
while ($row = $smcFunc['db_fetch_assoc']($request))
|
|
while ($row = $smcFunc['db_fetch_assoc']($request))
|
|
{
|
|
{
|
|
- $log_topics[] = array($row['id_topic'], $row['id_member'], $row['id_msg'], $row['disregarded']);
|
|
+ $log_topics[] = array($row['id_topic'], $row['id_member'], $row['id_msg'], (is_null($row['disregarded']) ? 0 : $row['disregarded']));
|
|
|
|
|
|
|
|
|
|
if (count($log_topics) > 500)
|
|
if (count($log_topics) > 500)
|