function prepareInputForUpdate($input)
{
if (isset($input['init_pages_counter'])) {
$input['init_pages_counter'] = intval($input['init_pages_counter']);
}
if (isset($input['last_pages_counter'])) {
$input['last_pages_counter'] = intval($input['last_pages_counter']);
}
return $input;
}