Only evaluate tokens if phids not null
Summary: Fixes T8577, Only evaluate tokens if phids not null Test Plan: Open Upcoming Events in Calendar. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8577 Differential Revision: https://secure.phabricator.com/D13326
This commit is contained in:
@@ -127,14 +127,14 @@ final class PhabricatorCalendarEventSearchEngine
|
||||
}
|
||||
|
||||
$invited_phids = $saved->getParameter('invitedPHIDs');
|
||||
$invited_phids = $user_datasource->evaluateTokens($invited_phids);
|
||||
if ($invited_phids) {
|
||||
$invited_phids = $user_datasource->evaluateTokens($invited_phids);
|
||||
$query->withInvitedPHIDs($invited_phids);
|
||||
}
|
||||
|
||||
$creator_phids = $saved->getParameter('creatorPHIDs');
|
||||
$creator_phids = $user_datasource->evaluateTokens($creator_phids);
|
||||
if ($creator_phids) {
|
||||
$creator_phids = $user_datasource->evaluateTokens($creator_phids);
|
||||
$query->withCreatorPHIDs($creator_phids);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user