mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +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;
|
return false;
|
||||||
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();
|
||||||
|
if(!is_null($pClub))
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->stateChanges("shortcode", $code);
|
$this->stateChanges("shortcode", $code);
|
||||||
|
|
Loading…
Reference in a new issue