Use "d" for coordinates fetched through wikidata, remove useless

parentheses
This commit is contained in:
2021-10-10 12:32:55 +02:00
parent edbe0230af
commit 581d9c7079
3 changed files with 14 additions and 14 deletions

View File

@ -151,7 +151,7 @@ final class NodaWikidataFetcher {
if (empty($wikipedia_cont = MD_STD::runCurl($linkUrl))) return '';
$doc = new DOMDocument();
if (!($doc->loadHTML($wikipedia_cont))) {
if (!$doc->loadHTML($wikipedia_cont)) {
return '';
}
@ -526,7 +526,7 @@ final class NodaWikidataFetcher {
if (!empty($cinfo['persinst_kurzinfo']) and substr($cinfo['persinst_kurzinfo'], 0, 3) !== 'GND') {
if (isset($_GET['keep'])) {
if (!($_GET['keep']) || $_GET['keep'] === 'replace') {
if (!$_GET['keep'] || $_GET['keep'] === 'replace') {
$updatePersinstStmt->bind_param("si", $datafromwiki, $persinst_id);
$updatePersinstStmt->execute();
@ -1189,7 +1189,7 @@ final class NodaWikidataFetcher {
$updateStmt = $this->_mysqli_noda->do_prepare("UPDATE `orte`
SET `ort_nord_sued` = ?, `ort_west_ost` = ?, ort_zoom = '9'
WHERE `ort_id` = ?");
$updateStmt->bind_param("ssi", $latitude_wd, $longitude_wd, $onum);
$updateStmt->bind_param("ddi", $latitude_wd, $longitude_wd, $onum);
$updateStmt->execute();
$updateStmt->close();
unset($updateStmt);
@ -1335,7 +1335,7 @@ final class NodaWikidataFetcher {
if (!empty($cinfo['tag_anmerkung']) and substr($cinfo['tag_anmerkung'], 0, 3) !== 'GND') {
if (isset($_GET['keep'])) {
if (!($_GET['keep']) || $_GET['keep'] === 'replace') {
if (!$_GET['keep'] || $_GET['keep'] === 'replace') {
$updateTagDescStmt->bind_param("si", $datafromwiki, $tag_id);
$updateTagDescStmt->execute();