mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-28 04:59:04 +00:00
php8.1-deprecated
This commit is contained in:
parent
4b8cd0c779
commit
2c52e13a24
@ -195,11 +195,11 @@ class WeblinkModel extends AdminModel
|
|||||||
if ($item = parent::getItem($pk))
|
if ($item = parent::getItem($pk))
|
||||||
{
|
{
|
||||||
// Convert the metadata field to an array.
|
// Convert the metadata field to an array.
|
||||||
$registry = new Registry($item->metadata);
|
$registry = new Registry($item->metadata ?? '');
|
||||||
$item->metadata = $registry->toArray();
|
$item->metadata = $registry->toArray();
|
||||||
|
|
||||||
// Convert the images field to an array.
|
// Convert the images field to an array.
|
||||||
$registry = new Registry($item->images);
|
$registry = new Registry($item->images ?? '');
|
||||||
$item->images = $registry->toArray();
|
$item->images = $registry->toArray();
|
||||||
|
|
||||||
// Load associated web links items
|
// Load associated web links items
|
||||||
|
Loading…
Reference in New Issue
Block a user