Fix the permissions onv the voicemail directory creation.
This commit is contained in:
@@ -88,7 +88,7 @@ if ($domains_processed == 1) {
|
|||||||
$voicemails = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
$voicemails = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||||
foreach ($voicemails as $row) {
|
foreach ($voicemails as $row) {
|
||||||
$path = $_SESSION['switch']['voicemail']['dir'].'/default/'.$row['domain_name'].'/'.$row['voicemail_id'];
|
$path = $_SESSION['switch']['voicemail']['dir'].'/default/'.$row['domain_name'].'/'.$row['voicemail_id'];
|
||||||
mkdir($path, 07, true);
|
mkdir($path, 0777, true);
|
||||||
}
|
}
|
||||||
unset ($prep_statement, $sql);
|
unset ($prep_statement, $sql);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user