aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-02-25 01:22:36 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-02-25 01:22:36 +0000
commitead4422667100b087c68b95164185feffc43336c (patch)
treea1b3ed58650800e968a98ed4ce02e431749f3c54 /phpBB/index.php
parent04978aa04408e988fd39bc1495b7536b47e3f66c (diff)
downloadforums-ead4422667100b087c68b95164185feffc43336c.tar
forums-ead4422667100b087c68b95164185feffc43336c.tar.gz
forums-ead4422667100b087c68b95164185feffc43336c.tar.bz2
forums-ead4422667100b087c68b95164185feffc43336c.tar.xz
forums-ead4422667100b087c68b95164185feffc43336c.zip
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
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php4
1 files changed, 4 insertions, 0 deletions
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);