Fix syntax error

I think i should sleep... I skip even simple things like initialize the variable
This commit is contained in:
veselcraft 2021-12-28 18:27:23 +03:00
parent 6133c5a27c
commit 7557d6779b
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -35,6 +35,7 @@ class Users
return $user; return $user;
else if ($handleId == true) else if ($handleId == true)
{ {
$id = array();
preg_match("/id([0-9]+)/", $url, $id); preg_match("/id([0-9]+)/", $url, $id);
return $this->toUser($this->users->get($id[1])); return $this->toUser($this->users->get($id[1]));
} }