Skip to content

Commit

Permalink
Merge pull request #2 from Wiakowe/master
Browse files Browse the repository at this point in the history
Class fixes
  • Loading branch information
tedivm committed Sep 10, 2012
2 parents c83a6e3 + 812e4eb commit a3d6c80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Fetch/Message.php
Expand Up @@ -18,7 +18,7 @@
* @package Fetch
* @author Robert Hafner <tedivm@tedivm.com>
*/
class ImapMessage
class Message
{
/**
* This is the connection/mailbox class that the email came from.
Expand Down Expand Up @@ -527,11 +527,11 @@ static function getParametersFromStructure($structure)
$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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fetch/Server.php
Expand Up @@ -308,7 +308,7 @@ public function search($criteria = 'ALL', $limit = null)

return $messages;
}else{
false;
return array();
}
}

Expand Down

0 comments on commit a3d6c80

Please sign in to comment.