Fixed parens on target

This commit is contained in:
snipe 2016-10-25 12:53:07 -07:00
parent f156ec58b6
commit f30631efb6

View file

@ -374,7 +374,7 @@ class ReportsController extends Controller
$activity_target = "";
}
} elseif ( $activity->target_type === "App\Models\User") {
if($activity->target()) {
if($activity->target) {
$activity_target = '<a href="'.route('view/user', $activity->target_id).'">'.$activity->target->fullName().'</a>';
} else {
$activity_target = '';