Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Nov 2, 2018
1 parent cd52cf4 commit 54edf68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_privacy/models/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function getRequestFormPublished()
$menuItem = $db->loadObject();

// Check if the menu item exists in database
if ($menuItem->id)
if ($menuItem)
{
$status['exists'] = true;

Expand All @@ -119,7 +119,7 @@ public function getRequestFormPublished()

$linkMode = JFactory::getApplication()->get('force_ssl', 0) == 2 ? 1 : -1;

if (!$menuItem->id)
if (!$menuItem)
{
$status['link'] = JRoute::link('site', 'index.php?option=com_privacy&view=request', true, $linkMode);
}
Expand Down

0 comments on commit 54edf68

Please sign in to comment.