Update app_defaults.php

This commit is contained in:
FusionPBX 2019-07-25 09:42:19 -06:00 committed by GitHub
parent 18bd6f98dd
commit e5ba2a90f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@
//populate the languages table, if necessary
$sql = "select count(*) from v_languages";
$database = new database;
$num_rows = $database->execute($sql, null, 'column');
$num_rows = $database->select($sql, null, 'column');
if ($row['num_rows'] == 0) {
$sql = "insert into v_languages (language_uuid, language, code) values ";
$sql .= "('".uuid()."', 'Afrikaans', 'af'), ";
@ -212,7 +212,7 @@
//populate the countries table, if necessary
$sql = "select count(*) as num_rows from v_countries";
$database = new database;
$num_rows = $database->execute($sql, null, 'column');
$num_rows = $database->select($sql, null, 'column');
if ($row['num_rows'] == 0) {
$sql = "insert into v_countries (country_uuid, country, iso_a2, iso_a3, num, calling_code) values ";
$sql .= "('".uuid()."', 'Afghanistan', 'AF', 'AFG', 4, '93'), ";