Fixed a bug where profiled account names would not get strtolower() and thus match nothing. Thanks to Tweakers.net user "doeners"

This commit is contained in:
James Cole
2016-03-19 11:23:23 +01:00
parent 8f3572f2d3
commit 7aa2565e89
8 changed files with 9 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ final class FromAccountEnds extends AbstractTrigger implements TriggerInterface
*/
public function triggered(TransactionJournal $journal)
{
$name = $journal->source_account_name ?? strtolower(TransactionJournal::sourceAccount($journal)->name);
$name = strtolower($journal->source_account_name ?? TransactionJournal::sourceAccount($journal)->name);
$nameLength = strlen($name);
$search = strtolower($this->triggerValue);
$searchLength = strlen($search);