We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dc45dd commit 9304443Copy full SHA for 9304443
setup.php
@@ -520,8 +520,8 @@ function plugin_formcreator_getSchemaPath(string $version = null): ?string {
520
function plugin_formcreator_savePreviousVersion(): void {
521
$plugin = new Plugin();
522
$plugin->getFromDBbyDir('formcreator');
523
- $oldVersion = $plugin->fields['version'];
524
- if ($oldVersion != PLUGIN_FORMCREATOR_VERSION) {
+ $oldVersion = $plugin->fields['version'] ?? null;
+ if ($oldVersion !== null && $oldVersion != PLUGIN_FORMCREATOR_VERSION) {
525
Config::setConfigurationValues('formcreator', [
526
'previous_version' => $oldVersion,
527
]);
0 commit comments