Skip to content
Snippets Groups Projects
Commit 73875caa authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

prevent deprecated warning, fixes #1818

Closes #1818

Merge request studip/studip!1195
parent eae3efe4
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class StatusgruppeUser extends SimpleORMap implements PrivacyObject ...@@ -68,7 +68,7 @@ class StatusgruppeUser extends SimpleORMap implements PrivacyObject
* @param Contact $contact * @param Contact $contact
* @return StatusgruppeUser[] * @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]); return self::findBySQL("INNER JOIN `statusgruppen` USING(`statusgruppe_id`) WHERE `statusgruppen`.`range_id` = ? AND `statusgruppe_user`.`user_id` = ?", [$contact->owner_id, $contact->user_id]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment