mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix multiple PHP warnings
This commit is contained in:
@@ -98,6 +98,10 @@
|
||||
*/
|
||||
public function get($profile = 'all') {
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get(null, '/app/registrations');
|
||||
|
||||
//initialize the id used in the registrations array
|
||||
$id = 0;
|
||||
|
||||
@@ -116,8 +120,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//get the default settings
|
||||
$sql = "select sip_profile_name from v_sip_profiles ";
|
||||
$sql .= "where true ";
|
||||
@@ -142,10 +144,6 @@
|
||||
|
||||
//show an error message
|
||||
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>";
|
||||
}
|
||||
@@ -407,6 +405,7 @@
|
||||
|
||||
//set message
|
||||
if (is_array($response_api)) {
|
||||
$message = '';
|
||||
foreach ($response_api as $registration_user => $response) {
|
||||
if (is_array($response['command'])) {
|
||||
foreach($response['command'] as $command) {
|
||||
|
||||
Reference in New Issue
Block a user