Fix plugin installation

pull/3308/head
Julio Montoya 6 years ago
parent 49cdc10a3c
commit 319ffb64cd
  1. 13
      plugin/buycourses/database.php

@ -718,6 +718,19 @@ $currencies = [
];
foreach ($currencies as $currency) {
$value = Database::select(
"*",
$currencyTable,
[
'where' => ['country_code = ?' => $currency[0]],
],
'first'
);
if (!empty($value)) {
continue;
}
Database::insert(
$currencyTable,
[

Loading…
Cancel
Save