mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix issue with transcripts that do not have associated rules
Some effects are synthetic and do not directly result from rules. Auditors: btrahan
This commit is contained in:
parent
b16db61a87
commit
a940e6a32d
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ final class HeraldApplyTranscript extends Phobject {
|
|||
|
||||
$this->setAction($effect->getAction());
|
||||
$this->setTarget($effect->getTarget());
|
||||
$this->setRuleID($effect->getRule()->getID());
|
||||
if ($effect->getRule()) {
|
||||
$this->setRuleID($effect->getRule()->getID());
|
||||
}
|
||||
$this->setReason($effect->getReason());
|
||||
$this->setApplied($applied);
|
||||
$this->setAppliedReason($reason);
|
||||
|
|
Loading…
Reference in a new issue