From 618fc099d8652948d57dc32ff40f6058141e41f3 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sun, 8 Sep 2019 18:34:19 +0200 Subject: [PATCH] Upgrade step 1: if old config not set, new one will be null Follow-up on efff00d9cc36a43a1c057c0b631a1a8c17ff60cf. The code did not check for non-existing old config, and would therefore set the new one to null. This caused new installations to be non-functional, as all configs would be set to NULL, effectively hiding the Gauge form for all issues. --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index bbce493..0407b56 100644 --- a/install.php +++ b/install.php @@ -44,7 +44,7 @@ function install_convert_config_names() { $t_value = plugin_config_get( $t_old ); # Set the new value if different than default - if( isset( $t_default_values[$t_new] ) && $t_value != $t_default_values[$t_new] ) { + if( $t_value && isset( $t_default_values[$t_new] ) && $t_value != $t_default_values[$t_new] ) { plugin_config_set( $t_new, $t_value ); }