Skip to content

Commit

Permalink
Merge pull request #145 from mambax7/master
Browse files Browse the repository at this point in the history
Fix for guest acccess
  • Loading branch information
mambax7 committed May 3, 2020
2 parents 7c9d88d + fd7f500 commit a7d4124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -256,8 +256,8 @@
/**
* Friends
*/
$friendController = new Suico\FriendsController($xoopsDB, $xoopsUser);
if ($xoopsUser) {
$friendController = new Suico\FriendsController($xoopsDB, $xoopsUser);
$friendrequest = 0;
if (1 === $friendController->isOwner) {
$criteria_uidfriendrequest = new Criteria('friendrequestto_uid', $friendController->uidOwner);
Expand Down

0 comments on commit a7d4124

Please sign in to comment.