fix(mian): Add silence files; add casting

Everything now casts right at the SQL interpolation point
This commit is contained in:
2026-09-10 11:46:36 +02:00
parent 150e068550
commit e97af7a1da
34 changed files with 258 additions and 2 deletions
@@ -135,7 +135,7 @@ final class CustomHtmlBlockDataHandler implements FormDataHandlerInterface
{
$maxOrdering = Db::getInstance()->getValue(
'SELECT MAX(`ordering`) FROM `' . _DB_PREFIX_ . 'ws_customhtml`
WHERE `id_ws_customhtml_group` = ' . $idGroup
WHERE `id_ws_customhtml_group` = ' . (int) $idGroup
);
return $maxOrdering === false || $maxOrdering === null ? 0 : ((int) $maxOrdering + 1);