mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fix fatal error when changing username
I forgot name of DatabaseConnection class xddd
This commit is contained in:
parent
1b3052869f
commit
48a2040322
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ class User extends RowModel
|
|||
if(\Chandler\MVC\Routing\Router::i()->getMatchingRoute("/$code")[0]->presenter !== "UnknownTextRouteStrategy")
|
||||
return false;
|
||||
|
||||
$pClub = DB::i()->getContext()->table("groups")->where("shortcode", $code)->fetch();
|
||||
$pClub = DatabaseConnection::i()->getContext()->table("groups")->where("shortcode", $code)->fetch();
|
||||
if(!is_null($pClub))
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue