Skip to content

Commit

Permalink
Upgrade step 1: if old config not set, new one will be null
Browse files Browse the repository at this point in the history
Follow-up on efff00d. 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.
  • Loading branch information
dregad committed Sep 8, 2019
1 parent 26ce0d7 commit 618fc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 618fc09

Please sign in to comment.