Remove trailing spaces and adjust the vertical spacing.
This commit is contained in:
@@ -321,18 +321,16 @@ EOD;
|
|||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
|
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
if ( count($result)> 0) {
|
if ( count($result)> 0) {
|
||||||
$country_iso = $result[0]["value"];
|
$country_iso = $result[0]["value"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($prep_statement, $sql, $result);
|
unset($prep_statement, $sql, $result);
|
||||||
|
|
||||||
if ( $country_iso===NULL )
|
if ( $country_iso===NULL ) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$countries = json_decode($country_list, true);
|
$countries = json_decode($country_list, true);
|
||||||
|
|
||||||
@@ -393,7 +391,6 @@ EOD;
|
|||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
if ($row['num_rows'] == 0) {
|
if ($row['num_rows'] == 0) {
|
||||||
$sql = "insert into v_vars ";
|
$sql = "insert into v_vars ";
|
||||||
$sql .= "(";
|
$sql .= "(";
|
||||||
@@ -430,7 +427,6 @@ EOD;
|
|||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
if ($row['num_rows'] == 0) {
|
if ($row['num_rows'] == 0) {
|
||||||
$sql = "insert into v_vars ";
|
$sql = "insert into v_vars ";
|
||||||
$sql .= "(";
|
$sql .= "(";
|
||||||
@@ -559,7 +555,7 @@ EOD;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//set country code variables
|
//set country code variables
|
||||||
set_country_vars($db, $x);
|
set_country_vars($db, $x);
|
||||||
|
|
||||||
//save the vars.xml file
|
//save the vars.xml file
|
||||||
|
|||||||
Reference in New Issue
Block a user