Submitted by : Rob Sterenborg / firstname.lastname@example.org.
When viewing singlepart messages, I got notices on screen :
"Notice: Trying to get property of non-object in
/<path-to>/class/mime/Message.class.php". This about
Also, in $ent->header->parameters['filename'] and
$ent->header->parameters['name'], $ent was not defined.
Modifying it to $this should solve that.
Of course it's possible to suppress those messages but
since that's ugly I changed $ent to $this where $ent
was not defined and put in extra checks to see if
$this->header->disposition->name exists. If it doesn't
it won't be checked by the following if statement.
The attached file works for me.
Log in to post a comment.