Skip to content

Commit

Permalink
php72 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Nübel committed May 25, 2018
1 parent ded89dd commit e6136b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kickgdpr.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function onBeforeCompileHead()

$lang_links = $this->params->get('lang_links', false);

if ($lang_links && count($lang_links))
if ($lang_links && count((array) $lang_links))
{
$lang = $this->app->getLanguage()->getTag();

Expand Down Expand Up @@ -238,7 +238,7 @@ public function onBeforeCompileHead()
$js[] = ' "allow": "' . JText::_($allow) . '",';
$js[] = ' "deny": "' . JText::_($deny) . '",';
$js[] = ' "link": "' . JText::_($link) . '",';
$js[] = ' "href": "' . $href . '",';
$js[] = ' "href": "' . JText::_($href) . '",';
$js[] = ' },';
$js[] = ' "cookie": {';
$js[] = ' "expiryDays": ' . (int) $expiryDays;
Expand Down

2 comments on commit e6136b8

@zero-24
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intended the revert of the last commit with this one? ded89dd

@nielsnuebel
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zero-24 yes :)

Please sign in to comment.