@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Svemir Brkic and committed by
epriestley
7463f9b3 2d7705ea

+3 -1
+3 -1
src/applications/phriction/controller/PhrictionDocumentController.php
··· 115 115 $project = id(new PhabricatorProject())->loadOneWhere( 116 116 'phrictionSlug = %s', 117 117 PhrictionDocument::getProjectSlugIdentifier($slug)); 118 - $project_phid = $project->getPHID(); 118 + if ($project) { 119 + $project_phid = $project->getPHID(); 120 + } 119 121 } 120 122 121 123 $phids = array_filter(