mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix address collision
This commit is contained in:
parent
40fae8d4da
commit
0f89de3011
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