Catch empty (null) descriptions. Which never happens.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-08-26 07:37:27 +02:00
parent 0fe70dae17
commit 43a7544dd7
4 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ final class DescriptionContains extends AbstractTrigger implements TriggerInterf
public function triggered(TransactionJournal $journal): bool
{
$search = strtolower($this->triggerValue);
$source = strtolower($journal->description);
$source = strtolower($journal->description ?? '');
$strpos = strpos($source, $search);
if (!($strpos === false)) {