Browse Source

Fixed in_array arg order

pull/93/head
Vika 5 years ago
committed by GitHub
parent
commit
27580eec29
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/XRay/Formats/Mf2.php

+ 1
- 1
lib/XRay/Formats/Mf2.php View File

@ -341,7 +341,7 @@ class Mf2 extends Format {
} }
} }
// If we have a geo property, it overrides p-latitude and p-longitude // If we have a geo property, it overrides p-latitude and p-longitude
if(array_key_exists($mf2, 'geo') && in_array('h-geo', $mf2['geo']['type'])) {
if(array_key_exists('geo', $mf2) && in_array('h-geo', $mf2['geo']['type'])) {
$hcard['latitude'] = $mf2['geo']['latitude'][0]; $hcard['latitude'] = $mf2['geo']['latitude'][0];
$hcard['longitude'] = $mf2['geo']['longitude'][0]; $hcard['longitude'] = $mf2['geo']['longitude'][0];
} }

Loading…
Cancel
Save