- Подкорректированы выводимые ошибки (на будущее)

parent fd138eb8
...@@ -246,12 +246,12 @@ class Passing extends \common\components\ActiveRecordModel ...@@ -246,12 +246,12 @@ class Passing extends \common\components\ActiveRecordModel
curl_setopt($curl, CURLOPT_URL, Yii::$app->urlManager->createAbsoluteUrl('/triggers/default/rechecktriggers')); curl_setopt($curl, CURLOPT_URL, Yii::$app->urlManager->createAbsoluteUrl('/triggers/default/rechecktriggers'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
if (!curl_exec($curl)) { if (!curl_exec($curl)) {
$this->addError('email', curl_error($curl)); $this->addError('passed', curl_error($curl));
return false; return false;
} }
return true; return true;
} else { } else {
$this->addError('email', $init); $this->addError('pased', $init);
return false; return false;
} }
} }
......
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