diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 14:03:14 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 13:55:07 +0200 |
commit | 89238164e12ba8532cdefed16a789cbd4e4efde5 (patch) | |
tree | d233da3070e605bd27603fff4e1a26a5082c42e6 /apps/dav/lib/CardDAV/CardDavBackend.php | |
parent | 0ebdf871e02653bf7e65bf5bdefaec7f92d3c677 (diff) | |
download | nextcloud-server-89238164e12ba8532cdefed16a789cbd4e4efde5.tar.gz nextcloud-server-89238164e12ba8532cdefed16a789cbd4e4efde5.zip |
Fix comparisons in the dav app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/CardDAV/CardDavBackend.php')
-rw-r--r-- | apps/dav/lib/CardDAV/CardDavBackend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php index 9dccffc022b..7c275611951 100644 --- a/apps/dav/lib/CardDAV/CardDavBackend.php +++ b/apps/dav/lib/CardDAV/CardDavBackend.php @@ -1019,7 +1019,7 @@ class CardDavBackend implements BackendInterface, SyncSupport { } $preferred = 0; foreach($property->parameters as $parameter) { - if ($parameter->name == 'TYPE' && strtoupper($parameter->getValue()) == 'PREF') { + if ($parameter->name === 'TYPE' && strtoupper($parameter->getValue()) === 'PREF') { $preferred = 1; break; } |