]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Reworked "remote" cookie handling
[friendica.git] / mod / cal.php
index 05ad314b039a351dc2a790cbac33a34882542364..b77abaa828b7fa4874ac7c01dc86bfb4938cb171 100644 (file)
@@ -113,13 +113,8 @@ function cal_content(App $a)
        $owner_uid = intval($a->data['user']['uid']);
        $nick = $a->data['user']['nickname'];
 
-       if (!empty($_SESSION['remote']) && is_array($_SESSION['remote'])) {
-               foreach ($_SESSION['remote'] as $v) {
-                       if ($v['uid'] == $a->profile['profile_uid']) {
-                               $contact_id = $v['cid'];
-                               break;
-                       }
-               }
+       if (!empty(remote_user($a->profile['profile_uid']))) {
+               $contact_id = remote_user($a->profile['profile_uid']);
        }
 
        $groups = [];