Another cast for safety
This commit is contained in:
parent
1afc4d929d
commit
005a86da1c
@ -468,7 +468,7 @@ function serendipity_printCommentsByAuthor() {
|
|||||||
if (empty($serendipity['GET']['page'])) {
|
if (empty($serendipity['GET']['page'])) {
|
||||||
$serendipity['GET']['page'] = 1;
|
$serendipity['GET']['page'] = 1;
|
||||||
}
|
}
|
||||||
$sql_limit = $serendipity['fetchLimit'] * ($serendipity['GET']['page']-1) . ',' . $serendipity['fetchLimit'];
|
$sql_limit = (int)$serendipity['fetchLimit'] * ((int)$serendipity['GET']['page']-1) . ',' . (int)$serendipity['fetchLimit'];
|
||||||
$c = serendipity_fetchComments(null, $sql_limit, 'co.entry_id DESC, co.id ASC', false, $type, $sql_where);
|
$c = serendipity_fetchComments(null, $sql_limit, 'co.entry_id DESC, co.id ASC', false, $type, $sql_where);
|
||||||
|
|
||||||
$entry_comments = array();
|
$entry_comments = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user