diff --git a/lam/templates/config/profmanage.php b/lam/templates/config/profmanage.php index 0828351f..d623818b 100644 --- a/lam/templates/config/profmanage.php +++ b/lam/templates/config/profmanage.php @@ -60,9 +60,9 @@ echo $_SESSION['header']; password != $_POST['passwd']) { $error = _("Master password is wrong!"); @@ -142,6 +142,14 @@ if ($_POST['submit']) { else exit; } + +// check if config.cfg is valid +if (!isset($cfg->default) && !isset($cfg->password)) { + StatusMessage("ERROR", _("Please set up your master configuration file (config/config.cfg) first!"), ""); + echo "\n\n"; + die(); +} + ?>