Merge pull request #2 from Wiakowe/master

Class fixes
This commit is contained in:
Robert Hafner 2012-09-10 09:24:21 -07:00
commit a3d6c80df1
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ namespace Fetch;
* @package Fetch
* @author Robert Hafner <tedivm@tedivm.com>
*/
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;
}

View File

@ -308,7 +308,7 @@ class Server
return $messages;
}else{
false;
return array();
}
}