Fixing style errors.
This commit is contained in:
parent
f613688b28
commit
c2cd54325f
@ -208,7 +208,7 @@ $langs->trans('notiftouser'),
|
|||||||
$langs->trans('notiftofixedemail'),
|
$langs->trans('notiftofixedemail'),
|
||||||
$langs->trans('notiftouserandtofixedemail')
|
$langs->trans('notiftouserandtofixedemail')
|
||||||
);
|
);
|
||||||
var_dump($arrayofnotifto,$conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE);
|
var_dump($arrayofnotifto, $conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE);
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("NotificationDisableConfirmMessage").'</td>';
|
print $langs->trans("NotificationDisableConfirmMessage").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
@ -112,18 +112,18 @@ class Notify
|
|||||||
$langs->load("mails");
|
$langs->load("mails");
|
||||||
|
|
||||||
$listofnotiftodo = $this->getNotificationsArray($action, $socid, $object, 0);
|
$listofnotiftodo = $this->getNotificationsArray($action, $socid, $object, 0);
|
||||||
if (!empty($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE)){
|
if (!empty($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE)) {
|
||||||
if ($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 1 || $conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 3){
|
if ($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 1 || $conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 3) {
|
||||||
foreach($listofnotiftodo as $val){
|
foreach ($listofnotiftodo as $val) {
|
||||||
if ($val['type'] == 'touser'){
|
if ($val['type'] == 'touser') {
|
||||||
unset($listofnotiftodo[$val['email']]);
|
unset($listofnotiftodo[$val['email']]);
|
||||||
$listofnotiftodo = array_merge($listofnotiftodo);
|
$listofnotiftodo = array_merge($listofnotiftodo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 2 || $conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 3){
|
if ($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 2 || $conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE == 3) {
|
||||||
foreach($listofnotiftodo as $val){
|
foreach ($listofnotiftodo as $val) {
|
||||||
if ($val['type'] == 'tofixedemail'){
|
if ($val['type'] == 'tofixedemail') {
|
||||||
unset($listofnotiftodo[$val['email']]);
|
unset($listofnotiftodo[$val['email']]);
|
||||||
$listofnotiftodo = array_merge($listofnotiftodo);
|
$listofnotiftodo = array_merge($listofnotiftodo);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user