Skip to content
Snippets Groups Projects
Commit 60359970 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

use static instead of harcoded class, fixes #2194

Closes #2194

Merge request studip/studip!1417
parent 862d1981
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -237,7 +237,7 @@ class User extends AuthUserMd5 implements Range, PrivacyObject
*/
public static function build($data, $is_new = true)
{
$user = new User();
$user = new static();
$user->info = new UserInfo();
$user->setData($data);
$user->setNew($is_new);
......
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