Fixed the registration count
- Fixed on the dashboard for those with superadmin group - Fixed the count in the SIP status page
This commit is contained in:
@@ -80,13 +80,13 @@ if (!class_exists('registrations')) {
|
||||
$xml_response = trim(event_socket::command($cmd));
|
||||
|
||||
//show an error message
|
||||
if ($xml_response == "Invalid Profile!") {
|
||||
if ($xml_response == "Invalid Profile!") {
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get(null, '/app/registrations');
|
||||
|
||||
//show the error message
|
||||
$xml_response = "<error_msg>".escape($text['label-message'])."</error_msg>";
|
||||
$xml_response = "<error_msg>".escape($text['label-message'])."</error_msg>";
|
||||
}
|
||||
|
||||
//santize the XML
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
//registration count
|
||||
if ($esl->is_connected() && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
||||
$registration = new registrations;
|
||||
if (permission_exists("registration_all")) {
|
||||
$active_registrations = $registration->show = 'all';
|
||||
}
|
||||
$active_registrations = $registration->count();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user