silverstripe-cms/code
Dylan Wagstaff e20036482b FIX undefined index error in CMS
With the CMS 4.12 update functionality was altered to utilise an
Extension to obtain the CMS Edit link for a page, rather than having
SiteTree do it internally. Unfortunately the default return case for
`extend` (see Extensible) is an _empty_ array. This leave code
potentially referencing an array offset that doesn't exist ([0]). PHP 8
is less forgiving that it's predecessors on this kind of behaviour. We
should check that the responses from extensions exist before trying to
reference them.
2023-03-28 18:58:55 +13:00
..
BatchActions ENH PHP 8.1 compatibility 2022-04-13 17:07:59 +12:00
Controllers FIX Call parent::contruct() 2022-10-18 16:35:11 +13:00
Forms ENH PHP 8.1 compatibility 2022-04-13 17:07:59 +12:00
GraphQL NEW: getByLink plugin allows arrays of links (#2666) 2021-09-07 09:34:52 +12:00
Model FIX undefined index error in CMS 2023-03-28 18:58:55 +13:00
Reports ENH PHP 8.1 compatibility 2022-04-13 17:07:59 +12:00
Search ENH PHP 8.1 compatibility 2022-04-13 17:07:59 +12:00
Tasks ENH Replace E_USER_ERROR errors with exceptions 2020-09-24 17:06:31 -07:00