]> git.mxchange.org Git - friendica.git/commitdiff
Fixes undefined variable
authorMichael Vogel <icarus@dabo.de>
Fri, 3 May 2019 04:01:01 +0000 (06:01 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 3 May 2019 04:01:01 +0000 (06:01 +0200)
src/Model/Contact.php

index 159b888b5e8c021d59238602e39c4d8b6e17af1e..5a5701f09a61c9d84a75d15b03977343e77df007 100644 (file)
@@ -2119,6 +2119,8 @@ class Contact extends BaseObject
 
                        // send email notification to owner?
                } else {
+                       $protocol = self::getProtocol($url, $network);
+
                        if (DBA::exists('contact', ['nurl' => Strings::normaliseLink($url), 'uid' => $importer['uid'], 'pending' => true])) {
                                Logger::log('ignoring duplicated connection request from pending contact ' . $url);
                                return;