Commit 32bd3646 authored by Guinness's avatar Guinness

PHP Linting

parent 42a0e68f
Pipeline #2722 canceled with stages
......@@ -869,7 +869,7 @@ class Admin extends Controller
$db->query(
"DELETE FROM adresses
WHERE id = $id"
);
);
} else {
$result = $db->query("SELECT user_id FROM adresses WHERE id = $id");
$result = $result->fetch(\PDO::FETCH_ASSOC);
......
......@@ -34,7 +34,7 @@ class Campaign extends Controller
FROM dons
WHERE status IN (1, 4, 102)
AND datec > '".CAMPAIGN_START_DATE."'"
);
);
$total_confirmed = intval($result->fetchColumn());
$f3->set('total_confirmed', $total_confirmed);
// Now, provisional. All reccuring pledge who have a datec in the last month (still active)
......
......@@ -108,13 +108,13 @@ class Cron extends Controller
str_replace(
"%%DECIMALES%%",
$decimales,
str_replace(
str_replace(
"%%NOM%%",
$pdf['nom'],
str_replace(
str_replace(
"%%MILLIER%%",
$pdf['decimale'],
$template
$template
)
)
)
......
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