Use existed variable.
This commit is contained in:
@@ -111,13 +111,9 @@ require_once "resources/check_auth.php";
|
|||||||
if (count($_SESSION["domains"]) > 1) {
|
if (count($_SESSION["domains"]) > 1) {
|
||||||
if (!(permission_exists('registration_all') && $show == "all")) {
|
if (!(permission_exists('registration_all') && $show == "all")) {
|
||||||
if ($registrations[$x]['sip-auth-realm'] == $_SESSION['domain_name']) {}
|
if ($registrations[$x]['sip-auth-realm'] == $_SESSION['domain_name']) {}
|
||||||
|
elseif ($user_array[1] == $_SESSION['domain_name']){}
|
||||||
else {
|
else {
|
||||||
$tmp = explode('@', $registrations[$x]['user'], 2);
|
unset($registrations[$x]);
|
||||||
if($tmp[1] == $_SESSION['domain_name']){}
|
|
||||||
else {
|
|
||||||
unset($registrations[$x]);
|
|
||||||
}
|
|
||||||
unset($tmp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user