From af9ab4a79ec9fe7495b97e5437f48b17a3ce03a4 Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 30 Jul 2002 07:52:01 +0000 Subject: [PATCH 1/1] finddisplayentity related fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3170 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime.class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/class/mime.class.php b/class/mime.class.php index d2f5133b..1da86226 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -763,23 +763,24 @@ class message { } $found = true; } + $found = true; } else if ( $this->type0 == 'text' && ( $this->type1 == 'plain' || $this->type1 == 'html' || $this->type1 == 'message') && isset($this->entity_id) ) { if (count($this->entities) == 0) { - if (!$this->header->disposition->name == 'attachment') { + if ($this->header->disposition->name != 'attachment') { $entity[] = $this->entity_id; } } } $i = 0; while ( isset($this->entities[$i]) && !$found && - !($this->entities[$i]->header->disposition->name - == 'attachment') && - !($this->entities[$i]->type0 == 'message' && - $this->entities[$i]->type1 == 'rfc822' ) + ($this->entities[$i]->header->disposition->name + != 'attachment') && + ($this->entities[$i]->type0 != 'message' && + $this->entities[$i]->type1 != 'rfc822' ) ) { $this->entities[$i]->findDisplayEntity(&$entity, $alt_order); -- 2.25.1