Fix fatal error when changing username

I forgot name of DatabaseConnection class xddd
This commit is contained in:
Jill Stingray 2020-06-23 20:05:13 +00:00
parent 1b3052869f
commit 48a2040322

View file

@ -584,7 +584,7 @@ class User extends RowModel
if(\Chandler\MVC\Routing\Router::i()->getMatchingRoute("/$code")[0]->presenter !== "UnknownTextRouteStrategy") if(\Chandler\MVC\Routing\Router::i()->getMatchingRoute("/$code")[0]->presenter !== "UnknownTextRouteStrategy")
return false; 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)) if(!is_null($pClub))
return false; return false;
} }