Skip to content

Commit

Permalink
Merge pull request #25 from eoxia-amandine/fix_option_notice
Browse files Browse the repository at this point in the history
#23 [Settings] fix: option notice empty
  • Loading branch information
eoxia-amandine authored Nov 5, 2024
2 parents f077ef2 + 12cab1f commit 7b77840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-eoblocks-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
class Eoblocks_Helper {
public static function digirisk_api_get( $route, $params ) {
$eoblocks_settings = get_option('eoblocks_settings');
if ( ! is_array( $eoblocks_settings ) ) {
return [];
}

$base_url_api = $eoblocks_settings['eoblocks_dolibarr_url'];
$api_key = $eoblocks_settings['eoblocks_dolibarr_api_key'];

Expand Down

0 comments on commit 7b77840

Please sign in to comment.