forked from Wavyzz/dolibarr
preg_quote
This commit is contained in:
@@ -448,7 +448,7 @@ foreach ($listofnotifiedevents as $notifiedevent) {
|
|||||||
$inputfieldalreadyshown = 0;
|
$inputfieldalreadyshown = 0;
|
||||||
// Notification with threshold
|
// Notification with threshold
|
||||||
foreach ($conf->global as $key => $val) {
|
foreach ($conf->global as $key => $val) {
|
||||||
if ($val == '' || !preg_match('/^NOTIFICATION_FIXEDEMAIL_'.$notifiedevent['code'].'_THRESHOLD_HIGHER_(.*)/', $key, $reg)) {
|
if ($val == '' || !preg_match('/^NOTIFICATION_FIXEDEMAIL_'.preg_quote($notifiedevent['code'], '/').'_THRESHOLD_HIGHER_(.*)/', $key, $reg)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user