Setup: Squirrelmail 1.5.2 SVN with svn update current through today
Archlinux: 6.5.4-arch2-1
Apache / 2.4.57 (Unix)
OpenSSL / 3.1.3
mod_fcgid / 2.3.9
PHP / 8.1.23
On start the following error is displayed:
Category: PHP
Message: Trying to access array offset on value of type bool
FILE: /srv/http/htdocs/squirrelmail/functions/mailbox_display.php
LINE: 254
Which appears to be a type issue with 'THREAD_INDENT' in the line:
$aMailbox['THREAD_INDENT'] = $aCachedMailbox['THREAD_INDENT'];
Strangely it is unclear where 'THREAD_INDENT' is being set. A grep of the source for the term only identifies functions/mailbox_display.php as containing the term at all:
$ grep -Rn THREAD_INDENT squirrelmail/*
squirrelmail/functions/mailbox_display.php:254: $aMailbox['THREAD_INDENT'] = $aCachedMailbox['THREAD_INDENT'];
squirrelmail/functions/mailbox_display.php:257: $aMailbox['THREAD_INDENT'] = false;
squirrelmail/functions/mailbox_display.php:511: $aIndentArray =& $aMailbox['THREAD_INDENT'][$aMailbox['SETINDEX']];
squirrelmail/functions/mailbox_display.php:775: $aMailbox['THREAD_INDENT'][$iSetIndx] = $aRes[1];
Is this a missing definition issue? Let me know if I can provide additional information.
Screenshot of error attached.
Note, the effect of the error appears to be harmless. The message is not repeated when you refresh the message list, or read a message and return to the message list. So this may be a startup ordering issue?