From 890083fc4d897e2fd8d5a6a8b5ee26391d21e437 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 28 Aug 2017 02:02:22 -0600 Subject: [PATCH] Update registrations.php --- app/registrations/registrations.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php index 0cec261034..c9d8666bea 100644 --- a/app/registrations/registrations.php +++ b/app/registrations/registrations.php @@ -50,10 +50,6 @@ require_once "resources/header.php"; $document['title'] = $text['header-registrations']; -//set the variables - $profile = (isset($_REQUEST['profile']) && $_REQUEST['profile'] != '') ? $_REQUEST['profile'] : "internal"; - $show = trim($_REQUEST["show"]); - //check permissions if (permission_exists("registration_domain") || permission_exists("registration_all") || if_group("superadmin")) { //access granted @@ -68,9 +64,10 @@ $text = $language->get(); //get the HTTP values and set as variables + $profile = trim($_REQUEST["profile"]); $search = trim($_REQUEST["search"]); $show = trim($_REQUEST["show"]); - if ($show != "all") { $show = ''; } + if ($show == "all") { $profile = 'all'; } //define variables $c = 0; @@ -94,7 +91,7 @@ //get the registrations $obj = new registrations; - $registrations = $obj->get($show); + $registrations = $obj->get($profile); //count the registrations $registration_count = 0; @@ -107,7 +104,6 @@ } } } - //show the registrations echo "\n"; echo "\n";