Paul Lesniewski <paul <at> squirrelmail.org> writes: > > On 5/9/07, T. Plancon <tplancon <at> bkaarchs.com> wrote: > > Hello, > > > > I just upgraded squirrelmail from 1.4.6 to 1.4.10. When I log into > > 1.4.10 I get the following error messages: > > > > *Notice*: Undefined offset: 1 in > > */var/www/html/squirrelmail-1.4.10/functions/imap_messages.php* on line > > *712* > > Try this patch for the above error. Please report back if it fixed that error. > > Index: functions/imap_messages.php > =================================================================== > --- functions/imap_messages.php (revision 12361) > +++ functions/imap_messages.php (working copy) > <at> <at> -672,6 +672,7 <at> <at> > $type = explode("/", $type); > if(!is_array($type)) { > $type[0] = 'text'; > + $type[1] = 'plain'; > } > break; > default: break; http://www.php.net/explode "If delimiter contains a value that is not contained in string, then explode() will return an array containing string." is_array() test is useless. $type is always array. If proposed modification fixes your issue, show your content-type header value and name your PHP version. rfc2045 5.1. Syntax of the Content-Type Header Field --- Note also that a subtype specification is MANDATORY -- it may not be omitted from a Content-Type header field. As such, there are no default subtypes. --- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users