mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-12-01 15:06:02 +03:00
Minor fixes for the Fetch Server and Message for the classes to work.
This commit is contained in:
parent
c83a6e3b16
commit
812e4eb048
@ -18,7 +18,7 @@ namespace Fetch;
|
|||||||
* @package Fetch
|
* @package Fetch
|
||||||
* @author Robert Hafner <tedivm@tedivm.com>
|
* @author Robert Hafner <tedivm@tedivm.com>
|
||||||
*/
|
*/
|
||||||
class ImapMessage
|
class Message
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* This is the connection/mailbox class that the email came from.
|
* This is the connection/mailbox class that the email came from.
|
||||||
@ -527,11 +527,11 @@ class ImapMessage
|
|||||||
$parameters = array();
|
$parameters = array();
|
||||||
if(isset($structure->parameters))
|
if(isset($structure->parameters))
|
||||||
foreach($structure->parameters as $parameter)
|
foreach($structure->parameters as $parameter)
|
||||||
$parameters[$parameter->attribute] = $parameter->value;
|
$parameters[strtolower($parameter->attribute)] = $parameter->value;
|
||||||
|
|
||||||
if(isset($structure->dparameters))
|
if(isset($structure->dparameters))
|
||||||
foreach($structure->dparameters as $parameter)
|
foreach($structure->dparameters as $parameter)
|
||||||
$parameters[$parameter->attribute] = $parameter->value;
|
$parameters[strtolower($parameter->attribute)] = $parameter->value;
|
||||||
|
|
||||||
return $parameters;
|
return $parameters;
|
||||||
}
|
}
|
||||||
|
@ -308,7 +308,7 @@ class Server
|
|||||||
|
|
||||||
return $messages;
|
return $messages;
|
||||||
}else{
|
}else{
|
||||||
false;
|
return array();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user