From d0c9db125be42fbb59ed4970f0b1db1605e4fa15 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 4 Apr 2011 14:13:48 -0700 Subject: [PATCH] Fix a herald rule editor warning. --- .../herald/controller/rule/HeraldRuleController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/herald/controller/rule/HeraldRuleController.php b/src/applications/herald/controller/rule/HeraldRuleController.php index f48fd43105..27053ce0fe 100644 --- a/src/applications/herald/controller/rule/HeraldRuleController.php +++ b/src/applications/herald/controller/rule/HeraldRuleController.php @@ -191,6 +191,9 @@ class HeraldRuleController extends HeraldController { $phids[] = $rule->getAuthorPHID(); foreach ($rule->getActions() as $action) { + if (!is_array($action->getTarget())) { + continue; + } foreach ($action->getTarget() as $target) { $target = (array)$target; foreach ($target as $phid) {