mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
min pagesize = 1
This commit is contained in:
parent
12e01c0ce3
commit
e97e16dfe2
@ -33,7 +33,11 @@
|
||||
if ($post = data_submitted()) {
|
||||
print_header();
|
||||
|
||||
set_user_preference('blogpagesize', optional_param('pagesize', 10, PARAM_INT));
|
||||
$pagesize = optional_param('pagesize', 10, PARAM_INT);
|
||||
if ($pagesize < 1 ) {
|
||||
error ('invalid page size');
|
||||
}
|
||||
set_user_preference('blogpagesize', $pagesize);
|
||||
redirect($referrer, get_string('changessaved'), 1);
|
||||
exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user