We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a23557 commit 52cd63eCopy full SHA for 52cd63e
1 file changed
admin/class-hello-asso-admin.php
@@ -297,7 +297,7 @@ function wporg_custom_box_html($post) {
297
$pageWidget = "ha-no-sync";
298
$type = "error_1";
299
} else {
300
- $campaign = get_option('ha-campaign');
+ $campaign = get_option('ha-campaign') ?? [];
301
$nbCampaign = count($campaign);
302
if (($nbCampaign == 0 or $campaign == '') && get_option('ha-error') == 0) {
303
$pageWidget = "ha-no-campaign";
@@ -362,7 +362,7 @@ class="st38"/>
362
<div id="ha-dropdown" class="ha-dropdown-content">
363
<a href="<?= esc_url(admin_url()); ?>admin.php?page=hello-asso">Synchronisation</a>
364
<?php
365
366
367
368
if (get_option('ha-slug') == '') {
0 commit comments