Update app_defaults.php

This commit is contained in:
FusionPBX 2019-07-02 23:48:01 -06:00 committed by GitHub
parent f8d0798490
commit 0393de30db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -91,9 +91,8 @@ if ($domains_processed == 1) {
$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) {
$num_rows = $database->select($sql, null, 'column');
if ($num_rows == 0) {
//build the array
$x = 0;
$array['email_templates'][$x]['email_template_uuid'] = '05b529c4-fba7-4071-bab3-143b076392e7';