Skip to content

Commit

Permalink
Fix item relation - see #4850
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen authored and trasher committed Feb 8, 2019
1 parent 6e850bd commit d2e05e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/commondbconnexity.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function canConnexityItem($methodItem, $methodNotItem, $item_right, $itemtype, $

// Do not get it twice
$connexityItem = $item;
if ($connexityItem == null) {
if (is_null($connexityItem)) {
$connexityItem = $this->getConnexityItem($itemtype, $items_id);

// Set value in $item to reuse it on future calls
Expand Down

0 comments on commit d2e05e0

Please sign in to comment.