summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-19 17:52:57 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-19 17:52:57 +1100
commit9e17fc22616c0340d121a8a9aa6515cd1d9853da (patch)
treef699783bd8b28ca3cb466e6333b782a9483881cf
parent84c181e692445fb2fc152d378c581fe774b82556 (diff)
Can't move threads when there's only one board
-rw-r--r--mod.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index b0129086..fd65abd7 100644
--- a/mod.php
+++ b/mod.php
@@ -2300,7 +2300,9 @@
;
$boards = listBoards();
-
+ if(count($boards) <= 1)
+ error('No board to move to; there is only one.');
+
$__boards = '';
foreach($boards as &$_board) {
if($_board['uri'] == $board['uri'])