From 84c181e692445fb2fc152d378c581fe774b82556 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 19 Nov 2011 03:47:41 +1100 Subject: [PATCH] Cannot "move" a thread to the same board. --- mod.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod.php b/mod.php index 227eebf3..b0129086 100644 --- a/mod.php +++ b/mod.php @@ -2183,6 +2183,9 @@ $targetBoard = $_POST['board']; $shadow = isset($_POST['shadow']); + if($targetBoard == $boardName) + error("Target and source board are the same."); + // copy() if leaving a shadow thread behind. otherwise, rename(). $clone = $shadow ? 'copy' : 'rename'; @@ -2300,6 +2303,8 @@ $__boards = ''; foreach($boards as &$_board) { + if($_board['uri'] == $board['uri']) + continue; $__boards .= '
  • ' . '' . '