mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Backport address colission fix
This commit is contained in:
parent
31c595384f
commit
1dedebd4e6
1 changed files with 4 additions and 0 deletions
|
@ -583,6 +583,10 @@ class User extends RowModel
|
|||
return false;
|
||||
if(\Chandler\MVC\Routing\Router::i()->getMatchingRoute("/$code")[0]->presenter !== "UnknownTextRouteStrategy")
|
||||
return false;
|
||||
|
||||
$pClub = DB::i()->getContext()->table("groups")->where("shortcode", $code)->fetch();
|
||||
if(!is_null($pClub))
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->stateChanges("shortcode", $code);
|
||||
|
|
Loading…
Reference in a new issue