Skip to content

Commit

Permalink
fix: do not overwrite dashboards from other plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 28, 2022
1 parent c1a11cf commit d0f49e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,10 @@ function plugin_formcreator_timelineActions($options) {
echo "</li>";
}

function plugin_formcreator_hook_dashboard_cards() {
$cards = [];
function plugin_formcreator_hook_dashboard_cards($cards) {
if ($cards === null) {
$cards = [];
}

$counters = [
'all' => __('All issues', 'formcreator'),
Expand Down

0 comments on commit d0f49e1

Please sign in to comment.