// == // // The v2.3.3 code was ONLY evaluating against Eventum Users. // This is how I fixed the issue on my system. // if (!empty($email)) { // don't send the email to the same person who sent it unless they want it
if ($sender_usr_id != false) { // Check Eventum users preference $prefs = Prefs::get($sender_usr_id); if (!isset($prefs['receive_copy_of_own_action'][$prj_id])) { $prefs['receive_copy_of_own_action'][$prj_id] = 0; } }
if ( // Eventum User *OR* External Address ( // Check Eventum User ($sender_usr_id != false) && ($prefs['receive_copy_of_own_action'][$prj_id] == 0) && (!empty($users[$i]["sub_usr_id"])) && ($sender_usr_id == $users[$i]["sub_usr_id"]) ) || ( // Check for External Addresses (strtolower(Mail_Helper::getEmailAddress($email)) == $sender_email) ) ) { continue; } //} $emails[] = $email; }
// ==
// ==
//
// The v2.3.3 code was ONLY evaluating against Eventum Users.
// This is how I fixed the issue on my system.
//
if (!empty($email)) {
// don't send the email to the same person who sent it unless they want it
if ($sender_usr_id != false) { get($sender_ usr_id) ; $prefs[ 'receive_ copy_of_ own_action' ][$prj_ id])) {
$prefs[ 'receive_ copy_of_ own_action' ][$prj_ id] = 0;
// Check Eventum users preference
$prefs = Prefs::
if (!isset(
}
}
if (
($sender_ usr_id != false) &&
($prefs[ 'receive_ copy_of_ own_action' ][$prj_ id] == 0) &&
( !empty( $users[ $i]["sub_ usr_id" ])) &&
( $sender_ usr_id == $users[ $i]["sub_ usr_id" ])
( strtolower( Mail_Helper: :getEmailAddres s($email) ) == $sender_email)
// Eventum User *OR* External Address
(
// Check Eventum User
) ||
(
// Check for External Addresses
)
) {
continue;
}
//}
$emails[] = $email;
}
// ==