mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-05 02:38:24 +00:00
Fix undefined variable $userId notice
This commit is contained in:
parent
c54c5af898
commit
6749120fbf
@ -23,8 +23,8 @@ $user = Factory::getApplication()->getIdentity();
|
||||
$canEdit = $user->authorise('core.edit', 'com_weblinks.category.' . $this->category->id);
|
||||
$canEditOwn = $user->authorise('core.edit.own', 'com_weblinks.category.' . $this->category->id);
|
||||
$canCreate = $user->authorise('core.create', 'com_weblinks.category.' . $this->category->id);
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
?>
|
||||
|
||||
<div class="com-weblinks-category__items">
|
||||
@ -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); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user