From f91f8bd8ca314b1453643f97a598620f9553ef14 Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 18 Sep 2002 13:21:14 +0000 Subject: [PATCH] Array index off by 1 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3695 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/help.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/help.php b/src/help.php index 88b92f19..5b43efa6 100644 --- a/src/help.php +++ b/src/help.php @@ -139,7 +139,7 @@ if (file_exists("../help/$squirrelmail_language")) { echo "
" . _("Some or all of the help documents are not present!"). '
'. - ''; + ''; /* this is really silly, because there may be some * footers. What about them. * TODO: Fix this so it's not just "exit". @@ -171,7 +171,7 @@ if ($help_exists == true) { $chapter = 0; } - if ( $chapter == 0 || !isset( $helpdir[$chapter] ) ) { + if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) { echo html_tag( 'table', '', 'center', '', 'cellpadding="0" cellspacing="0" border="0"' ); html_tag( 'tr' ) . html_tag( 'td' ) . -- 2.25.1