]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
Merge pull request #12251 from annando/remote-self
[friendica.git] / src / Model / APContact.php
index 742efcf190cae7561dcc2e679c2c5010046788c1..3b568f39f1d85c5c7be8880668adfe97d7c94e43 100644 (file)
@@ -383,7 +383,7 @@ class APContact
                // kroeg:blocks, updated
 
                // When the photo is too large, try to shorten it by removing parts
-               if (strlen($apcontact['photo']) > 255) {
+               if (strlen($apcontact['photo'] ?? '') > 255) {
                        $parts = parse_url($apcontact['photo']);
                        unset($parts['fragment']);
                        $apcontact['photo'] = (string)Uri::fromParts($parts);
@@ -574,7 +574,7 @@ class APContact
         *
         * @param array $apcontact
         *
-        * @return bool 
+        * @return bool
         */
        public static function isRelay(array $apcontact): bool
        {