fix(mian): Add silence files; add casting
Everything now casts right at the SQL interpolation point
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user