diff --git a/export.php b/export.php index fab396f..995e937 100644 --- a/export.php +++ b/export.php @@ -123,7 +123,7 @@ if ($mform->is_submitted()) { } $optional_row = array('idnumber', 'institution', 'department'); - foreach ($$optional_row as $opt) { + foreach ($optional_row as $opt) { if (isset($formdata->ident[$opt])) { $data->table[$i][] = $user->$opt; }