<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-4 col-mob-6 col-xxs-6 l-category-model-wrap">
вёрстка товара
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-4 col-mob-6 col-xxs-6 l-category-model-wrap">
вёрстка товара
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-4 col-mob-6 col-xxs-6 l-category-model-wrap">
вёрстка товара
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-4 col-mob-6 col-xxs-6 l-category-model-wrap">
вёрстка товара
</div>
</div>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-4 col-mob-6 col-xxs-6 l-category-model-wrap">
вёрстка товара
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-4 col-mob-6 col-xxs-6 l-category-model-wrap">
вёрстка товара
</div>
</div>
Array
(
[190516] => Array
(
[0] => Array
(
[test] => 123
[name] => test
)
[1] => Array
(
[test] => 123
[name] => test
)
[2] => Array
(
[test] => 123
[name] => test
)
[3] => Array
(
[test] => 123
[name] => test
)
)
[190521] => Array
(
[0] => Array
(
[test] => 123
[name] => test
)
[1] => Array
(
[test] => 123
[name] => test
)
[2] => Array
(
[test] => 123
[name] => test
)
)
[190525] => Array
(
[0] => Array
(
[test] => 123
[name] => test
)
[1] => Array
(
[test] => 123
[name] => test
)
)
)
Просмотрел дебагером, исключение генерируется, попадает в блок catch и скрипт продолжает работать (хотя его работа должна прерываться). Не подскажите из-за чего такая штука может происходить?
<?php
public function sending(string $event, EmailAddress $recipient, array $tpl = array()): void
{
try {
$this->mailer->addAddress($recipient->email, $recipient->name);
$this->mailer->Subject = $subject;
$this->mailer->Body = $body;
$this->mailer->isHTML(true);
if (!$this->mailer->send()) {
throw new EmailSendingFailed("Couldn't send email. Invalid sender address '{$recipient->email}'.");
}
return ['status' => 'success'];
$this->mailer->ClearAddresses();
} catch (Exception $e) {
return ['status' => 'error', 'error_message' => $e->getMessage();];
}
}
<?php
include("bd.php");
$res=mysql_query("SELECT * FROM `messages` WHERE `id_add` = '". $_COOKIE['doc_id'] . "' AND `id_to` = '". $_COOKIE['user_id'] . "' AND `id_add_pac` = '". $_COOKIE['user_id'] . "' AND `id_to_pac` = '". $_COOKIE['doc_id'] . "' ORDER BY `id`");
while($d=mysql_fetch_array($res))
{
echo "<b><font color='white'>".$d['login'].": </font></b>".$d['message']."<br>";
}
?>