mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
Added isset check for registered controller links in dev admin
This commit is contained in:
parent
8f3c0d3b73
commit
59f598d639
@ -148,14 +148,16 @@ 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) {
|
||||||
|
if (isset($registeredController['links'])) {
|
||||||
foreach ($registeredController['links'] as $url => $desc) {
|
foreach ($registeredController['links'] as $url => $desc) {
|
||||||
$links[$url] = $desc;
|
$links[$url] = $desc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $links;
|
return $links;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user