diff --git a/include/class.dept.php b/include/class.dept.php index 93e1b467388284fc9511ba0477809a56436a6c58..af0cbe7ee6002331634e67b171b40c86a7c56105 100644 --- a/include/class.dept.php +++ b/include/class.dept.php @@ -226,7 +226,7 @@ implements TemplateVariable, Searchable { if (!$member->staff) continue; // Annoted the staff model with alerts and role - $extended[] = new AnnotatedModel($member->staff, array( + $extended[] = AnnotatedModel::wrap($member->staff, array( 'alerts' => $member->isAlertsEnabled(), 'role_id' => $member->role_id, ));