Update app_defaults.php

This commit is contained in:
FusionPBX 2019-07-02 23:14:26 -06:00 committed by GitHub
parent 0ab00dc345
commit d5b1941cfc
1 changed files with 48 additions and 39 deletions

View File

@ -86,6 +86,14 @@ if ($domains_processed == 1) {
//insert default password reset email template
if (file_exists($_SERVER['DOCUMENT_ROOT'].'/app/email_templates')) {
//add the email templates to the database
$sql = "select count(*) as num_rows from v_email_templates ";
$sql .= "where email_template_uuid = '05b529c4-fba7-4071-bab3-143b076392e7' ";
$database = new database;
$num_rows = $database->select($sql, $parameters, 'column');
if ($row['num_rows'] == 0) {
//build the array
$x = 0;
$array['email_templates'][$x]['email_template_uuid'] = '05b529c4-fba7-4071-bab3-143b076392e7';
@ -129,6 +137,7 @@ if ($domains_processed == 1) {
$p->delete("email_template_add", 'temp');
$p->delete("email_template_edit", 'temp');
}
}
}