1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01:00

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:
epriestley 2013-03-13 08:05:44 -07:00
parent 4b6c81a23c
commit 5b0e64435b

View file

@ -307,6 +307,7 @@ final class ManiphestTaskListController extends ManiphestController {
'%s'.
'</h1>',
$no_tasks));
$result_count = null;
} else {
$pager = new AphrontPagerView();
$pager->setURI($request->getRequestURI(), 'offset');