30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-16 21:12:22 +00:00

Fix undefined variable $userId notice

This commit is contained in:
Tuan Pham Ngoc 2023-11-28 10:32:42 +07:00
parent c54c5af898
commit 6749120fbf

View File

@ -84,7 +84,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
<?php
endif; ?>
<?php if ($canEdit || ($canEditOwn && $item->created_by == $userId)) :
<?php if ($canEdit || ($canEditOwn && $item->created_by == $user->id)) :
?>
<div class="icons list-group-item">
<?php echo HTMLHelper::_('weblinkicon.edit', $item, $item->params); ?>