|
|
@@ -78,11 +78,13 @@ class BxBaseModGroupsSearchResult extends BxBaseModProfileSearchResult
|
|
|
$CNF = &$this->oModule->_oConfig->CNF;
|
|
|
|
|
|
$oProfileAuthor = BxDolProfile::getInstance((int)$aParams['user']);
|
|
|
- $iListId = (int)$aParams['list_id'];
|
|
|
-
|
|
|
if (!$oProfileAuthor)
|
|
|
return false;
|
|
|
|
|
|
+ $iListId = 0;
|
|
|
+ if(isset($aParams['list_id']))
|
|
|
+ $iListId = (int)$aParams['list_id'];
|
|
|
+
|
|
|
$iProfileAuthor = $oProfileAuthor->id();
|
|
|
$oFavorite = $this->oModule->getObjectFavorite();
|
|
|
if(!$oFavorite || (!$oFavorite->isPublic() && $iProfileAuthor != bx_get_logged_profile_id()))
|