mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed some PHP warnings
This commit is contained in:
parent
1063d08854
commit
11159c3c60
@ -4,9 +4,8 @@
|
||||
|
||||
require_once("../config.php");
|
||||
|
||||
# sanity checks
|
||||
assert("!ereg('[^0-9]', \$_REQUEST['add'])");
|
||||
assert("!ereg('[^0-9]', \$_REQUEST['remove'])");
|
||||
optional_variable($add, "");
|
||||
optional_variable($remove, "");
|
||||
|
||||
if (! $site = get_site()) {
|
||||
redirect("$CFG->wwwroot/admin/");
|
||||
|
Loading…
x
Reference in New Issue
Block a user