Skip to content

Commit cb814c1

Browse files
committed
Check isset
1 parent f7ae73c commit cb814c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5889,7 +5889,7 @@ public function find(string $collection, array $queries = [], string $forPermiss
58895889
}
58905890

58915891
foreach ($orders as $order) {
5892-
if (!empty($cursor) && ($cursor[$order->getAttribute()] ?? null) === null) {
5892+
if (!empty($cursor) && !isset($cursor[$order->getAttribute()])) {
58935893
throw new OrderException(
58945894
message: "Order attribute '{$order->getAttribute()}' is empty",
58955895
attribute: $order->getAttribute()

0 commit comments

Comments
 (0)