Skip to content

Commit f9f24e9

Browse files
committed
sanity check on variable
1 parent 25a202c commit f9f24e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Support/Traits/GlobalIdTrait.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ protected function decodeCursor(array $args)
8484
return $resolver($args);
8585
}
8686

87-
return isset($args['after']) ? $this->getCursorId($args['after']) : 0;
87+
return isset($args['after']) && !empty($args['after'])
88+
? $this->getCursorId($args['after'])
89+
: 0;
8890
}
8991

9092
/**

0 commit comments

Comments
 (0)