Remove trailing spaces and adjust the vertical spacing.

This commit is contained in:
markjcrane 2015-07-08 09:30:00 -03:00
parent 62a11caa62
commit db84e4d8ec
1 changed files with 7 additions and 11 deletions

View File

@ -321,18 +321,16 @@ EOD;
$prep_statement = $db->prepare(check_sql($sql));
if ($prep_statement) {
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
if ( count($result)> 0) {
$country_iso = $result[0]["value"];
}
}
unset($prep_statement, $sql, $result);
if ( $country_iso===NULL )
if ( $country_iso===NULL ) {
return;
}
$countries = json_decode($country_list, true);
@ -393,7 +391,6 @@ EOD;
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
if ($row['num_rows'] == 0) {
$sql = "insert into v_vars ";
$sql .= "(";
@ -430,7 +427,6 @@ EOD;
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
if ($row['num_rows'] == 0) {
$sql = "insert into v_vars ";
$sql .= "(";