mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-27 12:39:05 +00:00
commit
8d928181e9
@ -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