salve gente!

uso da tanto la piattaforma moodle ed ora mi da un errore strano (per quelli che la usano, l'errore me lo da quando cerco di modificare 1 quiz, premendo continua nella pagina generale dove inserisco le opzioni generali del quiz tipo il titolo la descrizione ecc...)

....
codice:
<?PHP // $Id: edit.php,v 1.29 2004/08/23 12:29:29 moodler Exp $

    require_once("../../config.php");
    require_once("lib.php");

    require_login();

    optional_variable($courseid);

    if (empty($destination)) {
        $destination = "";
    }

    $modform = data_submitted($destination);

    if ($modform and !empty($modform->course)) {    // form submitted from mod.html

        $modform->name = trim($modform->name);

        if (empty($modform->name)) {
            if (empty($modform->intro)) {
                $modform->name = get_string('modulename', 'quiz');
            } else {
                $modform->name = strip_tags($modform->intro);
            }
        }

        $SESSION->modform = $modform;    // Save the form in the current session

    } else if ($courseid) { // Page retrieve through "Edit Questions" link - no quiz selected
        $modform->course = $courseid;
        unset($modform->instance);

        $SESSION->modform = $modform;    // Save the form in the current session

    } else {
        if (!isset($SESSION->modform)) {
            error("You have used this page incorrectly!");
        }

        $modform = $SESSION->modform;
    }
praticamente mi stampa a video

"You have used this page incorrectly!"

secondo voi che variabile causa questa stampa?

grazie