1
0
Fork 0
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:
epriestley 2015-04-06 10:08:33 -07:00
parent b16db61a87
commit a940e6a32d

View file

@ -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);