summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/addconfig.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/sysconfig/addconfig.inc.php')
-rw-r--r--modules-available/sysconfig/addconfig.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/sysconfig/addconfig.inc.php b/modules-available/sysconfig/addconfig.inc.php
index 27af31e8..456ee989 100644
--- a/modules-available/sysconfig/addconfig.inc.php
+++ b/modules-available/sysconfig/addconfig.inc.php
@@ -29,7 +29,7 @@ abstract class AddConfig_Base
if (($editId = Request::any('edit', 0, 'int')) !== 0) {
self::$instance->edit = ConfigTgz::get($editId);
if (self::$instance->edit === null)
- ErrorHandler::traceError('Invalid config id for editing');
+ ErrorHandler::traceError('Invalid config id for editing: ' . $editId);
Util::addRedirectParam('edit', self::$instance->edit->id());
}
}
@@ -182,7 +182,7 @@ class AddConfig_Finish extends AddConfig_Base
$this->edit->update($title, $modules);
$this->config = $this->edit;
}
- if ($this->config->generate(true, 150) === false) {
+ if ($this->config->generate($this->edit === null, 150) === false) {
Message::addError('unsuccessful-action');
Util::redirect('?do=SysConfig&action=addconfig');
}