Skip to content

Commit

Permalink
Eoxia#23 [Settings] fix: option notice empty
Browse files Browse the repository at this point in the history
  • Loading branch information
eoxia-amandine committed Nov 5, 2024
1 parent f077ef2 commit 12cab1f
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 12cab1f

Please sign in to comment.