Skip to content

Commit

Permalink
cast to int rather than using non strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
julienV committed Jul 24, 2017
1 parent bdfdcdc commit 208c57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/access/access.php
Expand Up @@ -597,7 +597,7 @@ public static function getAssetRules($assetKey, $recursive = false, $recursivePa

// If not full recursive mode, but recursive parent mode, do not add other recursion rules.
if (!$recursive && $recursiveParentAsset && self::$assetPermissionsParentIdMapping[$extensionName][$id]->name !== $extensionName
&& self::$assetPermissionsParentIdMapping[$extensionName][$id]->id != $assetId)
&& (int) self::$assetPermissionsParentIdMapping[$extensionName][$id]->id !== $assetId)
{
continue;
}
Expand Down

0 comments on commit 208c57d

Please sign in to comment.