mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Only get phid if project exists
Summary: If a project phriction page already exists, but object does not, avoid a fatal error. Test Plan: See https://github.com/facebook/phabricator/issues/123 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2749
This commit is contained in:
parent
2d7705ea30
commit
7463f9b3a9
1 changed files with 3 additions and 1 deletions
|
@ -115,8 +115,10 @@ final class PhrictionDocumentController
|
|||
$project = id(new PhabricatorProject())->loadOneWhere(
|
||||
'phrictionSlug = %s',
|
||||
PhrictionDocument::getProjectSlugIdentifier($slug));
|
||||
if ($project) {
|
||||
$project_phid = $project->getPHID();
|
||||
}
|
||||
}
|
||||
|
||||
$phids = array_filter(
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue