mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-06 14:49:27 +00:00
- Bug fix in MessageLib
- Now is possible to send a message to more recipients from FAS - Can be used the variables substitution from FAS
This commit is contained in:
@@ -265,12 +265,12 @@ class MessageLib
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!empty($subject))
|
||||
if (empty($subject))
|
||||
{
|
||||
$result = $this->_error('', MSG_ERR_SUBJECT_EMPTY);
|
||||
break;
|
||||
}
|
||||
else if (!empty($body))
|
||||
else if (empty($body))
|
||||
{
|
||||
$result = $this->_error('', MSG_ERR_BODY_EMPTY);
|
||||
break;
|
||||
@@ -884,4 +884,12 @@ class MessageLib
|
||||
{
|
||||
return success($retval, $code, MessageLib::MSG_INDX_PREFIX);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function parseMessageText($text, $data = array())
|
||||
{
|
||||
return $this->ci->parser->parse_string($text, $data, true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user