Commit 86094c7c authored by Shakarim Sapa's avatar Shakarim Sapa

- Debugg

parent b3fa2e37
......@@ -243,15 +243,11 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
$sendExist = TriggerSchedule::find()->where(['trigger_id'=>$this->id, 'email'=>$email])->exists();
if (array_key_exists('unique', $params) && $params['unique']==true && $sendExist==true)
if (array_key_exists('unique', $params) && $params['unique']==false)
$sendExist = false;
else
$sendExist = true;
if (!$sendExist) {
echo '1';
return TriggerSchedule::sendMessage($email, $this->message_template_id, $templateData, $this->id);
} else
echo '0';
}
}
}
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