AntonLV 8 rokov pred
rodič
commit
10d2c5d4b4

+ 1 - 1
modules/base/profile/classes/BxBaseModProfileAlertsResponse.php

@@ -50,7 +50,7 @@ class BxBaseModProfileAlertsResponse extends BxBaseModGeneralAlertsResponse
          * 3. User3 posts something on User2's timeline.
          * Result: User1 would be notifiend when the timeline of following profile (User2) was update by 3d party user.
          */
-        if($oAlert->sUnit == 'bx_timeline' && $oAlert->sAction == 'post_common') {
+        if($oAlert->sUnit == 'bx_timeline' && $oAlert->sAction == 'post_common' && !empty($oAlert->aExtras['object_author_id'])) {
             $oTimelineOwner = BxDolProfile::getInstance($oAlert->aExtras['object_author_id']);
             if($oTimelineOwner && $oTimelineOwner->getModule() == $this->_oModule->getName() && $oTimelineOwner->id() != $oAlert->iSender) {
                 $aContentInfo = $this->_oModule->serviceGetContentInfoById($oTimelineOwner->getContentId());