Forráskód Böngészése

#133 - delete profiles with content - small fix

Alex Trofimov 11 éve
szülő
commit
7d2898dbef

+ 1 - 1
modules/base/text/classes/BxBaseModTextAlertsResponse.php

@@ -15,7 +15,7 @@ class BxBaseModTextAlertsResponse extends BxDolAlertsResponse
 
     public function response($oAlert)
     {
-        if ('profile' != $oAlert->sUnit || 'delete' != $oAlert->sAction || !$oAlert->aExtras['delete_with_content'])
+        if ('profile' != $oAlert->sUnit || 'delete' != $oAlert->sAction || !isset($oAlert->aExtras['delete_with_content']) || !$oAlert->aExtras['delete_with_content'])
             return;
 
         BxDolService::call($this->MODULE, 'delete_entities_by_author', array($oAlert->iObject));