Skip to content

Commit

Permalink
Issue #4: check for config variable (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool authored Dec 9, 2024
1 parent b1a25ea commit efc71b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion key.module
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function key_get_keys() {
$configs[$key_config['id']] = $key_config;
}

return is_array($configs) ? $configs : array();
return (isset($configs) && is_array($configs)) ? $configs : array();
}

/**
Expand Down

0 comments on commit efc71b2

Please sign in to comment.