Просмотр исходного кода

Ticket #2392 - Point №1: Related fix.

AntonLV 6 лет назад
Родитель
Сommit
fe3dfd43da
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/boonex/timeline/classes/BxTimelineModule.php

+ 1 - 1
modules/boonex/timeline/classes/BxTimelineModule.php

@@ -2820,7 +2820,7 @@ class BxTimelineModule extends BxBaseModNotificationsModule implements iBxDolCon
             return CHECK_ACTION_RESULT_ALLOWED;
 
         // check ACL
-        if(($oOwner = BxDolProfile::getInstanceMagic($iOwnerId)) !== false) {
+        if($iOwnerId != 0 && ($oOwner = BxDolProfile::getInstanceMagic($iOwnerId)) !== false) {
             $mixedCheckResult = BxDolService::call($oOwner->getModule(), 'check_allowed_with_content_for_profile', array('view', $oOwner->getContentId(), $iProfileId));
             if($mixedCheckResult !== CHECK_ACTION_RESULT_ALLOWED)
                 return $mixedCheckResult;