]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed some PHP warnings
authormoodler <moodler>
Mon, 13 Jan 2003 12:14:47 +0000 (12:14 +0000)
committermoodler <moodler>
Mon, 13 Jan 2003 12:14:47 +0000 (12:14 +0000)
admin/admin.php

index 59e5403abdd207b7b9266e489cf1e72ad6729b44..79f98b742b5145827b9ca25ee5aee6941e25c73c 100644 (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/");