summaryrefslogtreecommitdiff
path: root/app/GedcomTag.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-16 13:41:58 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-16 13:57:09 +0100
commit20ff464cbc8712b4f48b31fc9333ead7edbda568 (patch)
treec694774b3075bbeb03bf7a85a97670e7506551ca /app/GedcomTag.php
parent32a9d5a3e34bae656568bc409352730f7496360b (diff)
downloadwebtrees-20ff464cbc8712b4f48b31fc9333ead7edbda568.tar.gz
webtrees-20ff464cbc8712b4f48b31fc9333ead7edbda568.tar.bz2
webtrees-20ff464cbc8712b4f48b31fc9333ead7edbda568.zip
Strict type check
Diffstat (limited to 'app/GedcomTag.php')
-rw-r--r--app/GedcomTag.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/GedcomTag.php b/app/GedcomTag.php
index 5e4c26bca6..6096084ce2 100644
--- a/app/GedcomTag.php
+++ b/app/GedcomTag.php
@@ -1937,7 +1937,7 @@ class GedcomTag
return I18N::translate('Image dimensions');
default:
// If no specialisation exists (e.g. DEAT:CAUS), then look for the general (CAUS)
- if (strpos($tag, ':')) {
+ if (strpos($tag, ':') !== false) {
list(, $tag) = explode(':', $tag, 2);
return self::getLabel($tag, $record);