Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
#16 Fix empty compat
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderpotjer committed Jul 18, 2020
1 parent c02258c commit 87c2042
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public_html/components/com_jed/helpers/jed.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ class JedHelper
*/
static public function formatCompatibility($compatibilityJson, $joomla = false, $string = false)
{
if (!$compatibilityJson)
{
return '';
}

$jedConfig = ComponentHelper::getComponent('com_jed')->getParams();
$compatibility = json_decode($compatibilityJson);
$formatCompatibility = [];

if (!$compatibility)
{
return $formatCompatibility;
}

// Get Joomla versions from config
$joomlaVersions = $jedConfig->get('joomla_versions');
$joomlaVersionsOutput = [];
Expand Down

0 comments on commit 87c2042

Please sign in to comment.