]> git.mxchange.org Git - friendica.git/commitdiff
Add existence check for contact.uid and contact.rel fields in Contact::getContactTemp...
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 16 Aug 2019 11:29:34 +0000 (07:29 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 16 Aug 2019 11:29:34 +0000 (07:29 -0400)
src/Module/Contact.php

index 4a127eee4194749c986bdd98a1c73b5426928019..04156daba9276b10d660dfd5a60f88a5b71d2ecd 100644 (file)
@@ -984,7 +984,7 @@ class Contact extends BaseModule
                $dir_icon = '';
                $alt_text = '';
 
-               if ($rr['uid']) {
+               if (!empty($rr['uid']) && !empty($rr['rel'])) {
                        switch ($rr['rel']) {
                                case Model\Contact::FRIEND:
                                        $dir_icon = 'images/lrarrow.gif';