forked from GithubBackups/vichan
Put a limit on ?/recent
This commit is contained in:
parent
e21a292bd4
commit
da3927ed17
@ -2818,6 +2818,7 @@ function mod_recent_posts($lim) {
|
|||||||
|
|
||||||
$limit = (is_numeric($lim))? $lim : 25;
|
$limit = (is_numeric($lim))? $lim : 25;
|
||||||
$last_time = (isset($_GET['last']) && is_numeric($_GET['last'])) ? $_GET['last'] : 0;
|
$last_time = (isset($_GET['last']) && is_numeric($_GET['last'])) ? $_GET['last'] : 0;
|
||||||
|
if ($limit > 100) $limit = 100;
|
||||||
|
|
||||||
$mod_boards = array();
|
$mod_boards = array();
|
||||||
$boards = listBoards();
|
$boards = listBoards();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user