Use === over == in more cases
This commit is contained in:
parent
d269b6644b
commit
e69be5b2b1
@ -1247,7 +1247,7 @@ final class NodaWikidataFetcher {
|
||||
SET `tag_anmerkung` = ?
|
||||
WHERE `tag_id` = ?");
|
||||
|
||||
if (!empty($cinfo['tag_anmerkung']) and substr($cinfo['tag_anmerkung'], 0, 3) != 'GND') {
|
||||
if (!empty($cinfo['tag_anmerkung']) and substr($cinfo['tag_anmerkung'], 0, 3) !== 'GND') {
|
||||
|
||||
if (isset($_GET['keep'])) {
|
||||
if (!($_GET['keep']) || $_GET['keep'] === 'replace') {
|
||||
@ -1561,8 +1561,8 @@ final class NodaWikidataFetcher {
|
||||
foreach ($wikidata_data['search'] as $result) {
|
||||
|
||||
if (empty($result['label'])
|
||||
or (!empty($result['description']) and $result['description'] == 'Wikipedia disambiguation page')
|
||||
or (!empty($result['description']) and $result['description'] == 'Wikimedia disambiguation page')
|
||||
or (!empty($result['description']) and $result['description'] === 'Wikipedia disambiguation page')
|
||||
or (!empty($result['description']) and $result['description'] === 'Wikimedia disambiguation page')
|
||||
) continue;
|
||||
|
||||
$cur = [
|
||||
@ -1611,7 +1611,7 @@ final class NodaWikidataFetcher {
|
||||
|
||||
foreach ($wikidata_data as $result) {
|
||||
|
||||
if ((isset($result['label']) and $result['label'] == '') or !isset($result['label']) or (isset($result['description']) and $result['description'] == 'Wikipedia disambiguation page') or (isset($result['description']) and $result['description'] == 'Wikimedia disambiguation page')) continue;
|
||||
if ((isset($result['label']) and $result['label'] == '') or !isset($result['label']) or (isset($result['description']) and $result['description'] === 'Wikipedia disambiguation page') or (isset($result['description']) and $result['description'] === 'Wikimedia disambiguation page')) continue;
|
||||
|
||||
$output .= '<div><a href="' . $link . 'suchbegriff=' . $searchTerm . '&wikidata_id=' . $result['id'] . '&lang=' . $lang . '">
|
||||
<h4 class="icons iconsTag">' . $result['id'] . '</h4>';
|
||||
|
Loading…
Reference in New Issue
Block a user