Skip to content

Commit d0f49e1

Browse files
committed
fix: do not overwrite dashboards from other plugins
1 parent c1a11cf commit d0f49e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hook.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,10 @@ function plugin_formcreator_timelineActions($options) {
652652
echo "</li>";
653653
}
654654

655-
function plugin_formcreator_hook_dashboard_cards() {
656-
$cards = [];
655+
function plugin_formcreator_hook_dashboard_cards($cards) {
656+
if ($cards === null) {
657+
$cards = [];
658+
}
657659

658660
$counters = [
659661
'all' => __('All issues', 'formcreator'),

0 commit comments

Comments
 (0)