mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Fix multiple PHP warnings
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
private $default_tone_label;
|
||||
private $database;
|
||||
|
||||
/**
|
||||
/**
|
||||
* called when the object is created
|
||||
*/
|
||||
public function __construct(array $setting_array = []) {
|
||||
@@ -47,6 +47,11 @@
|
||||
$this->database = $setting_array['database'] ?? database::new();
|
||||
}
|
||||
|
||||
/**
|
||||
* tones_list function
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function tones_list() {
|
||||
//get the tones
|
||||
$sql = "select * from v_vars ";
|
||||
@@ -68,6 +73,6 @@
|
||||
unset($sql, $tones, $tone);
|
||||
|
||||
//return the tones
|
||||
return $tone_list ?? '';
|
||||
return $tone_list ?? [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user