}
if ($limit > 0) {
- $limit_query_part = "LIMIT " . $pdo->quote($limit);
+ $limit_query_part = "LIMIT " . (int)$limit;
}
$allow_archived = false;
$content_query_part = "content, ";
if ($limit_query_part) {
- $offset_query_part = "OFFSET " . $pdo->quote($offset);
+ $offset_query_part = "OFFSET " . (int)$offset;
} else {
$offset_query_part = "";
}