Skip to content

Commit

Permalink
[Admin] Fix warning when creating dashboard - resolves #9851 (#9859)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramundomario committed Jul 26, 2021
1 parent 33a8b65 commit 6a75ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundles/AdminBundle/Controller/Admin/PortalController.php
Expand Up @@ -92,7 +92,7 @@ public function createDashboardAction(Request $request)
$dashboards = $this->dashboardHelper->getAllDashboards();
$key = trim($request->get('key'));

if ($dashboards[$key]) {
if (isset($dashboards[$key])) {
return $this->adminJson(['success' => false, 'message' => 'name_already_in_use']);
} elseif (!empty($key)) {
$this->dashboardHelper->saveDashboard($key);
Expand Down

0 comments on commit 6a75ea6

Please sign in to comment.