Commit 8b03dee6 authored by Shakarim Sapa's avatar Shakarim Sapa

- Проверяем триггеры

parent 939860da
......@@ -259,7 +259,7 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
$dbg['trigger_id'] = $this->id;
$dbg['template'] = $this->messageTemplate->name;
$dbg['unique'] = (($params['unique']===true) ? 'Да' : 'Нет');
if (TriggerSchedule::find()->count()<=3)
if (TriggerSchedule::find()->count()<3)
return TriggerSchedule::sendMessage($email, $this->message_template_id, $templateData, $this->id);
else
echo 'Единожды: '.$dbg['unique'].'; ID: '.$dbg['trigger_id'].'; EMAIL:'.$dbg['email'].'; Шаблон: '.$dbg['template'].'<br>';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment