Voicemail Greetings - Edit: Fix issue where no greetings present.

This commit is contained in:
fusionate 2024-05-31 15:21:23 -06:00
parent b678c6e9ce
commit d48208456b
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
$parameters['voicemail_id'] = $voicemail_id;
$database = new database;
$rows = $database->select($sql, $parameters, 'all');
$greeting_ids = array();
if (!empty($rows) && is_array($rows)) {
foreach ($rows as $row) {
$greeting_ids[] = $row['greeting_id'];