Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
if ($this->isMailingList !== null) { | if ($this->isMailingList !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'user.isMailingList = %d', | 'user.isMailingList = %d', | ||||
(int)$this->isMailingList); | (int)$this->isMailingList); | ||||
} | } | ||||
if (strlen($this->nameLike)) { | if ($this->nameLike !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'user.username LIKE %~ OR user.realname LIKE %~', | 'user.username LIKE %~ OR user.realname LIKE %~', | ||||
$this->nameLike, | $this->nameLike, | ||||
$this->nameLike); | $this->nameLike); | ||||
} | } | ||||
if ($this->isEnrolledInMultiFactor !== null) { | if ($this->isEnrolledInMultiFactor !== null) { | ||||
▲ Show 20 Lines • Show All 282 Lines • Show Last 20 Lines |