mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8033 from gorriecoe/4
[Fix] Added isset check for registered controller links in dev admin
This commit is contained in:
commit
9cb769327f
@ -148,12 +148,14 @@ class DevelopmentAdmin extends Controller
|
|||||||
*/
|
*/
|
||||||
protected static function get_links()
|
protected static function get_links()
|
||||||
{
|
{
|
||||||
$links = array();
|
$links = [];
|
||||||
|
|
||||||
$reg = Config::inst()->get(__CLASS__, 'registered_controllers');
|
$reg = Config::inst()->get(__CLASS__, 'registered_controllers');
|
||||||
foreach ($reg as $registeredController) {
|
foreach ($reg as $registeredController) {
|
||||||
foreach ($registeredController['links'] as $url => $desc) {
|
if (isset($registeredController['links'])) {
|
||||||
$links[$url] = $desc;
|
foreach ($registeredController['links'] as $url => $desc) {
|
||||||
|
$links[$url] = $desc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $links;
|
return $links;
|
||||||
|
Loading…
Reference in New Issue
Block a user