From: Tim Otten Date: Fri, 30 May 2014 20:34:40 +0000 (-0700) Subject: Civi\CCase\Events - Fix test regressions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=12784f110ec5c37b3dad747c1d0330169c1029d4;p=civicrm-core.git Civi\CCase\Events - Fix test regressions --- diff --git a/Civi/CCase/Events.php b/Civi/CCase/Events.php index 9c5c10c588..85b6336820 100644 --- a/Civi/CCase/Events.php +++ b/Civi/CCase/Events.php @@ -44,7 +44,7 @@ class Events { $caseId = NULL; switch ($event->entity) { case 'Activity': - if ($event->object->case_id) { + if (!empty($event->object->case_id)) { $caseId = $event->object->case_id; } break;