diff --git a/include/class.thread.php b/include/class.thread.php index b5176ada202836284534f51d75fd2cedbf2b74e9..017d7db353c3fbd5740935138f2fc26222a03dcb 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -299,12 +299,12 @@ implements Searchable { return false; // Referred to staff's department - if ($to->getDepts() && $this->referrals->findFirst(array( + if ($to->getDepts() && $this->referrals->filter(array( 'object_id__in' => $to->getDepts(), 'object_type' => ObjectModel::OBJECT_TYPE_DEPT))) return true; // Referred to staff's team - if ($to->getTeams() && $this->referrals->findFirst(array( + if ($to->getTeams() && $this->referrals->filter(array( 'object_id__in' => $to->getTeams(), 'object_type' => ObjectModel::OBJECT_TYPE_TEAM))) return true;