mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 04:58:40 +00:00
fix null checks
This commit is contained in:
parent
2b6e7b008d
commit
dcc60246df
|
|
@ -257,7 +257,9 @@ class BinarySearchTree
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp->parent = $node?->parent;
|
if ($temp !== null) {
|
||||||
|
$temp->parent = $node->parent;
|
||||||
|
}
|
||||||
|
|
||||||
$node = null;
|
$node = null;
|
||||||
|
|
||||||
|
|
@ -278,7 +280,9 @@ class BinarySearchTree
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp->parent = $node?->parent;
|
if ($temp !== null) {
|
||||||
|
$temp->parent = $node->parent;
|
||||||
|
}
|
||||||
|
|
||||||
$node = null;
|
$node = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user