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:
parent
2f04aefdf5
commit
03419dc770
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user