From: kink Date: Wed, 18 Sep 2002 13:21:14 +0000 (+0000) Subject: Array index off by 1 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f91f8bd8ca314b1453643f97a598620f9553ef14;p=squirrelmail.git Array index off by 1 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3695 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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' ) .