1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Fixing strictly null checks in CalendarInviteeQuery

Summary: Ref T7935, Fixing strictly null checks in CalendarInviteeQuery

Test Plan: Check code.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7935

Differential Revision: https://secure.phabricator.com/D12615
This commit is contained in:
lkassianik 2015-04-29 13:56:26 -07:00
parent d4176606f9
commit f721501877

View file

@ -59,28 +59,28 @@ final class PhabricatorCalendarEventInviteeQuery
$this->ids);
}
if ($this->eventPHIDs) {
if ($this->eventPHIDs !== null) {
$where[] = qsprintf(
$conn_r,
'eventPHID IN (%Ls)',
$this->eventPHIDs);
}
if ($this->inviteePHIDs) {
if ($this->inviteePHIDs !== null) {
$where[] = qsprintf(
$conn_r,
'inviteePHID IN (%Ls)',
$this->inviteePHIDs);
}
if ($this->inviterPHIDs) {
if ($this->inviterPHIDs !== null) {
$where[] = qsprintf(
$conn_r,
'inviterPHID IN (%Ls)',
$this->inviterPHIDs);
}
if ($this->statuses) {
if ($this->statuses !== null) {
$where[] = qsprintf(
$conn_r,
'status = %d',