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 // Restore old board
if ($board['uri'] != $tmp_board) if (!$tmp_board) {
unset($GLOBALS['board']);
} elseif ($board['uri'] != $tmp_board) {
openBoard($tmp_board); openBoard($tmp_board);
}
foreach ($cites as $matches) { foreach ($cites as $matches) {
$_board = $matches[2][0]; $_board = $matches[2][0];