]> git.mxchange.org Git - friendica.git/commitdiff
Fix: "Undefined property: stdClass::$personal"
authorMichael <heluecht@pirati.ca>
Mon, 15 Apr 2024 03:24:38 +0000 (03:24 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 15 Apr 2024 03:24:38 +0000 (03:24 +0000)
src/Network/Probe.php

index 96b9c91a45aa953442c0440a17dd9a09f91d67bc..736942ed2278cd4a2b122ce05cd0480d15a6f504 100644 (file)
@@ -2000,8 +2000,8 @@ class Probe
                if (isset($adr)) {
                        foreach ($adr as $feadr) {
                                if ((strcasecmp($feadr->mailbox, $data['name']) == 0)
-                                       &&(strcasecmp($feadr->host, $phost) == 0)
-                                       && (strlen($feadr->personal))
+                                       && (strcasecmp($feadr->host, $phost) == 0)
+                                       && !empty($feadr->personal)
                                ) {
                                        $personal = imap_mime_header_decode($feadr->personal);
                                        $data['name'] = '';