mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fail explicitly instead of looping if we can't build a paging clause
Ref T7548. This isn't a complete fix but hopefully will give me more debugging information.
This commit is contained in:
parent
e5580d038d
commit
c431d91f58
1 changed files with 3 additions and 1 deletions
|
@ -979,7 +979,9 @@ final class ManiphestTaskQuery extends PhabricatorCursorPagedPolicyAwareQuery {
|
|||
|
||||
$cursor = $this->loadCursorObject($task_id);
|
||||
if (!$cursor) {
|
||||
return null;
|
||||
// We may loop if we have a cursor and don't build a paging clause; fail
|
||||
// instead.
|
||||
throw new PhabricatorEmptyQueryException();
|
||||
}
|
||||
|
||||
$columns = array();
|
||||
|
|
Loading…
Reference in a new issue