Fixed some PHP warnings

This commit is contained in:
moodler 2003-01-13 12:14:47 +00:00
parent 1063d08854
commit 11159c3c60

View File

@ -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/");