Recordings - App Defaults: Minor adjustment to IF statement.
This commit is contained in:
parent
59a07e9cc7
commit
ae10573235
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
Portions created by the Initial Developer are Copyright (C) 2008-2023
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//if the recordings directory doesn't exist then create it
|
//if the recordings directory doesn't exist then create it
|
||||||
if (!empty($_SESSION['switch']['recordings']) && !empty($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
|
if (!empty($_SESSION['switch']['recordings']['dir']) && !empty($domain_name)) {
|
||||||
if (!is_readable($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
|
if (!is_readable($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
|
||||||
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name, 0770, true);
|
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name, 0770, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue