Update app_defaults.php

This commit is contained in:
FusionPBX 2019-07-02 23:03:00 -06:00 committed by GitHub
parent 5e73c46b74
commit 0ab00dc345
1 changed files with 284 additions and 287 deletions

View File

@ -29,10 +29,8 @@
//add the email templates to the database
$sql = "select count(*) as num_rows from v_email_templates ";
$prep_statement = $db->prepare(check_sql($sql));
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
$database = new database;
$num_rows = $database->select($sql, $parameters, 'column');
if ($row['num_rows'] == 0) {
//build the array
@ -327,7 +325,6 @@
$p->delete("email_template_edit", 'temp');
} //if ($row['num_rows'] == 0)
} //if ($prep_statement)
} //if ($domains_processed == 1)
?>