mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
return false instead of -1
This commit is contained in:
parent
d8a5755229
commit
2fbccd52fb
|
@ -141,7 +141,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
|
||||||
function toGroup($sender, $groupRecipient, $subject, $message, $params=array()) { /* {{{ */
|
function toGroup($sender, $groupRecipient, $subject, $message, $params=array()) { /* {{{ */
|
||||||
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
|
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
|
||||||
(!is_object($groupRecipient) || strcasecmp(get_class($groupRecipient), $this->_dms->getClassname('group')))) {
|
(!is_object($groupRecipient) || strcasecmp(get_class($groupRecipient), $this->_dms->getClassname('group')))) {
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($groupRecipient->getUsers() as $recipient) {
|
foreach ($groupRecipient->getUsers() as $recipient) {
|
||||||
|
@ -154,7 +154,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
|
||||||
function toList($sender, $recipients, $subject, $message, $params=array()) { /* {{{ */
|
function toList($sender, $recipients, $subject, $message, $params=array()) { /* {{{ */
|
||||||
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
|
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
|
||||||
(!is_array($recipients) && count($recipients)==0)) {
|
(!is_array($recipients) && count($recipients)==0)) {
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($recipients as $recipient) {
|
foreach ($recipients as $recipient) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user