mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48: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;
|
||||
|
||||
|
|
@ -278,7 +280,9 @@ class BinarySearchTree
|
|||
}
|
||||
}
|
||||
|
||||
$temp->parent = $node?->parent;
|
||||
if ($temp !== null) {
|
||||
$temp->parent = $node->parent;
|
||||
}
|
||||
|
||||
$node = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user