Skip to content
Snippets Groups Projects
Commit c4b0c01f authored by Demian Katz's avatar Demian Katz
Browse files

Default to empty params if missing.

- Helps with mocked testing environment; probably not necessary "in reality."
parent e3d4a7c1
No related merge requests found
......@@ -119,7 +119,7 @@ class RecordLink extends \Zend\View\Helper\AbstractHelper
// Build the URL:
$urlHelper = $this->getView()->plugin('url');
$details = $this->router->getActionRouteDetails($driver, $action);
return $urlHelper($details['route'], $details['params']);
return $urlHelper($details['route'], $details['params'] ?: []);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment