From ead4422667100b087c68b95164185feffc43336c Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Sun, 25 Feb 2001 01:22:36 +0000 Subject: A forum with no forums/cats now shows a nice message insted of a big ugly messed up template git-svn-id: file:///svn/phpbb/trunk@56 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/index.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index f7f9cdb580..b5716bc6b6 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -175,6 +175,10 @@ if($total_categories) } // for ... categories }// if ... total_categories +else +{ + error_die($db, GENERAL_ERROR, "There are no Categories or Foums on this board."); +} $template->pparse("output", "body"); include('page_tail.'.$phpEx); -- cgit v1.2.1