mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change. Use number_alias as voicemail_id.
This commit is contained in:
@@ -176,11 +176,11 @@ else {
|
||||
//get the voicemails
|
||||
$sql = "select * from v_voicemails ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
if (is_numeric($extension)) {
|
||||
$sql .= "and voicemail_id = '$extension' ";
|
||||
if (is_numeric($number_alias)) {
|
||||
$sql .= "and voicemail_id = '$number_alias' ";
|
||||
}
|
||||
else {
|
||||
$sql .= "and voicemail_id = '$number_alias' ";
|
||||
$sql .= "and voicemail_id = '$extension' ";
|
||||
}
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
|
||||
Reference in New Issue
Block a user