Skip to content

Commit a271451

Browse files
committed
fix send notifications
1 parent 96d4995 commit a271451

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/Console/Commands/SendNotifications.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ public function handle()
9191
$txt .= '   -   ';
9292
// Clauses
9393
foreach ($control->measures() as $measure) {
94-
$txt .= '<a href="' . url('/alice/show/' . $measure->id) . '">'. htmlentities($measure->clause) . '</a>';
95-
// Space
96-
$txt .= ' &nbsp; ';
94+
if ($measure!==null) {
95+
$txt .= '<a href="' . url('/alice/show/' . $measure->id) . '">'. htmlentities($measure->clause) . '</a>';
96+
// Space
97+
$txt .= ' &nbsp; ';
98+
}
9799
}
98100
$txt .= ' - &nbsp; ';
99101
// Name

0 commit comments

Comments
 (0)