Skip to content

Commit

Permalink
sanity check on variable
Browse files Browse the repository at this point in the history
chrissm79 committed Jan 25, 2017
1 parent 25a202c commit f9f24e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Support/Traits/GlobalIdTrait.php
Original file line number Diff line number Diff line change
@@ -84,7 +84,9 @@ protected function decodeCursor(array $args)
return $resolver($args);
}

return isset($args['after']) ? $this->getCursorId($args['after']) : 0;
return isset($args['after']) && !empty($args['after'])
? $this->getCursorId($args['after'])
: 0;
}

/**

0 comments on commit f9f24e9

Please sign in to comment.