1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Fix a qsprintf() issue in mail queries

Summary: Ref T920. Bumped into this while looking at SMS support.

Test Plan: Loaded `/mail/`, no more `qsprintf()` warning.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T920

Differential Revision: https://secure.phabricator.com/D19936
This commit is contained in:
epriestley 2018-12-30 10:54:06 -08:00
parent 106e90dcf0
commit ea8be11add

View file

@ -99,8 +99,8 @@ final class PhabricatorMetaMTAMailQuery
return $where;
}
protected function buildJoinClause(AphrontDatabaseConnection $conn) {
$joins = array();
protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) {
$joins = parent::buildJoinClauseParts($conn);
if ($this->actorPHIDs === null && $this->recipientPHIDs === null) {
$joins[] = qsprintf(
@ -119,7 +119,7 @@ final class PhabricatorMetaMTAMailQuery
PhabricatorMetaMTAMailHasRecipientEdgeType::EDGECONST);
}
return implode(' ', $joins);
return $joins;
}
protected function getPrimaryTableAlias() {