From 812e4eb048bdd6cc3539b81a6d09e91911b4fec9 Mon Sep 17 00:00:00 2001 From: Roger Llopart Pla Date: Mon, 10 Sep 2012 12:54:55 +0200 Subject: [PATCH] Minor fixes for the Fetch Server and Message for the classes to work. --- src/Fetch/Message.php | 6 +++--- src/Fetch/Server.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Fetch/Message.php b/src/Fetch/Message.php index c8a9d91..770a2af 100644 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -18,7 +18,7 @@ namespace Fetch; * @package Fetch * @author Robert Hafner */ -class ImapMessage +class Message { /** * This is the connection/mailbox class that the email came from. @@ -527,11 +527,11 @@ class ImapMessage $parameters = array(); if(isset($structure->parameters)) foreach($structure->parameters as $parameter) - $parameters[$parameter->attribute] = $parameter->value; + $parameters[strtolower($parameter->attribute)] = $parameter->value; if(isset($structure->dparameters)) foreach($structure->dparameters as $parameter) - $parameters[$parameter->attribute] = $parameter->value; + $parameters[strtolower($parameter->attribute)] = $parameter->value; return $parameters; } diff --git a/src/Fetch/Server.php b/src/Fetch/Server.php index 00e0ec8..308329a 100644 --- a/src/Fetch/Server.php +++ b/src/Fetch/Server.php @@ -308,7 +308,7 @@ class Server return $messages; }else{ - false; + return array(); } }