]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Merge pull request #5912 from MrPetovan/bug/fix-code-tag-nonsense
[friendica.git] / src / Model / Profile.php
index a1274c1ae40a170a762a089b775550c2a2a01433..28736750bdd9638d80b24cf961f431fc7afca291 100644 (file)
@@ -1056,7 +1056,7 @@ class Profile
                                if ($basepath != System::baseUrl() && !strstr($dest, '/magic') && !strstr($dest, '/rmagic')) {
                                        $magic_path = $basepath . '/magic' . '?f=&owa=1&dest=' . $dest;
                                        $serverret = Network::curl($magic_path);
-                                       if (!empty($serverret['success'])) {
+                                       if ($serverret->isSuccess()) {
                                                goaway($magic_path);
                                        }
                                }