diff --git a/lib/models/StatusgruppeUser.php b/lib/models/StatusgruppeUser.php index 3cd67f0bf88642dc6c6ed761f339d54b98be6f6b..44fda262672ec805821cc2bddad4a1cac7f717d3 100644 --- a/lib/models/StatusgruppeUser.php +++ b/lib/models/StatusgruppeUser.php @@ -68,7 +68,7 @@ class StatusgruppeUser extends SimpleORMap implements PrivacyObject * @param Contact $contact * @return StatusgruppeUser[] */ - public function findByContact(Contact $contact) + public static function findByContact(Contact $contact) { return self::findBySQL("INNER JOIN `statusgruppen` USING(`statusgruppe_id`) WHERE `statusgruppen`.`range_id` = ? AND `statusgruppe_user`.`user_id` = ?", [$contact->owner_id, $contact->user_id]); }