Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/query/PhabricatorAuthSSHKeyQuery.php
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | if ($this->keys !== null) { | ||||
$sql = array(); | $sql = array(); | ||||
foreach ($this->keys as $key) { | foreach ($this->keys as $key) { | ||||
$sql[] = qsprintf( | $sql[] = qsprintf( | ||||
$conn, | $conn, | ||||
'(keyType = %s AND keyIndex = %s)', | '(keyType = %s AND keyIndex = %s)', | ||||
$key->getType(), | $key->getType(), | ||||
$key->getHash()); | $key->getHash()); | ||||
} | } | ||||
$where[] = implode(' OR ', $sql); | $where[] = qsprintf($conn, '%LO', $sql); | ||||
} | } | ||||
if ($this->isActive !== null) { | if ($this->isActive !== null) { | ||||
if ($this->isActive) { | if ($this->isActive) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'isActive = %d', | 'isActive = %d', | ||||
1); | 1); | ||||
Show All 16 Lines |