diff --git a/include/class.dept.php b/include/class.dept.php index ef6c28d87c9b883d46e3e34dc633eda7c7ad3815..1f14bcb15e41ac4100b8db2670afb0b8b01a7eff 100644 --- a/include/class.dept.php +++ b/include/class.dept.php @@ -320,7 +320,7 @@ implements TemplateVariable { if (is_object($staff)) $staff = $staff->getId(); - return $members->getIterator()->findFirst(array( + return $this->getMembers()->findFirst(array( 'staff_id' => $staff )); }