undefined $site causing registerauth to be asked once and again, and again... MDL-16546

eVS: ----------------------------------------------------------------------
This commit is contained in:
stronk7 2008-09-18 16:49:19 +00:00
parent 4ab65b56df
commit 3bfb1f59cd

View File

@ -84,6 +84,7 @@
require_capability('moodle/site:config', $context);
/// check that site is properly customized
$site = get_site();
if (empty($site->shortname)) {
// probably new installation - lets return to frontpage after this step
// remove settings that we want uninitialised