Ver código fonte

Update app_defaults.php

FusionPBX 6 anos atrás
pai
commit
9c4807819a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      core/default_settings/app_defaults.php

+ 2 - 2
core/default_settings/app_defaults.php

@@ -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'), ";