1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-16 11:02:40 +01:00

markup() would erroneously set $board on x-board ref

This commit is contained in:
8chan 2015-02-26 01:13:07 -08:00
parent 2f04aefdf5
commit 03419dc770

View File

@ -1911,8 +1911,11 @@ function markup(&$body, $track_cites = false, $op = false) {
}
// Restore old board
if ($board['uri'] != $tmp_board)
if (!$tmp_board) {
unset($GLOBALS['board']);
} elseif ($board['uri'] != $tmp_board) {
openBoard($tmp_board);
}
foreach ($cites as $matches) {
$_board = $matches[2][0];