Use existed variable.
This commit is contained in:
parent
270d232d33
commit
7f8a57739e
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue