浏览代码

Fix regex

Mathieu Moulin 2 年之前
父节点
当前提交
63a75e655e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/ovh/core/triggers/interface_99_modOvh_OvhTriggers.class.php

+ 1 - 1
htdocs/ovh/core/triggers/interface_99_modOvh_OvhTriggers.class.php

@@ -94,7 +94,7 @@ class InterfaceOvhTriggers extends DolibarrTriggers
 			return 0; // If module is not enabled, we do nothing
 			return 0; // If module is not enabled, we do nothing
 		}
 		}
 
 
-		if (preg_match('SENTBYSMS', $action)) {
+		if (preg_match('/SENTBYSMS/', $action)) {
 			dol_syslog("Trigger '" . $this->name . "' for action '$action' launched by " . __FILE__ . ". id=" . $object->id);
 			dol_syslog("Trigger '" . $this->name . "' for action '$action' launched by " . __FILE__ . ". id=" . $object->id);
 			require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
 			require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
 			$now = dol_now();
 			$now = dol_now();