1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +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:
epriestley 2015-03-14 13:23:48 -07:00
parent e5580d038d
commit c431d91f58

View file

@ -979,7 +979,9 @@ final class ManiphestTaskQuery extends PhabricatorCursorPagedPolicyAwareQuery {
$cursor = $this->loadCursorObject($task_id); $cursor = $this->loadCursorObject($task_id);
if (!$cursor) { 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(); $columns = array();