Fix undefined variable on empty Maniphest results pages
Summary: Fixes T2741. If there are no results, `$result_count` is never initialized. Test Plan: Looked at an empty results page. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T2741 Differential Revision: https://secure.phabricator.com/D5328
This commit is contained in:
@@ -307,6 +307,7 @@ final class ManiphestTaskListController extends ManiphestController {
|
|||||||
'%s'.
|
'%s'.
|
||||||
'</h1>',
|
'</h1>',
|
||||||
$no_tasks));
|
$no_tasks));
|
||||||
|
$result_count = null;
|
||||||
} else {
|
} else {
|
||||||
$pager = new AphrontPagerView();
|
$pager = new AphrontPagerView();
|
||||||
$pager->setURI($request->getRequestURI(), 'offset');
|
$pager->setURI($request->getRequestURI(), 'offset');
|
||||||
|
|||||||
Reference in New Issue
Block a user