Fix multiple PHP warnings

This commit is contained in:
markjcrane
2025-11-01 19:58:21 -06:00
parent a675660473
commit bf5bb4f642
41 changed files with 539 additions and 442 deletions

View File

@@ -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 ?? [];
}
}