mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Strict comparisons.
This commit is contained in:
@@ -116,7 +116,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
$set = $set->sortBy(
|
||||
function (Bill $bill) {
|
||||
|
||||
$int = $bill->active == 1 ? 0 : 1;
|
||||
$int = $bill->active === 1 ? 0 : 1;
|
||||
|
||||
return $int . strtolower($bill->name);
|
||||
}
|
||||
@@ -168,7 +168,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
$set = $set->sortBy(
|
||||
function (Bill $bill) {
|
||||
|
||||
$int = $bill->active == 1 ? 0 : 1;
|
||||
$int = $bill->active === 1 ? 0 : 1;
|
||||
|
||||
return $int . strtolower($bill->name);
|
||||
}
|
||||
@@ -500,7 +500,7 @@ class BillRepository implements BillRepositoryInterface
|
||||
|
||||
return true;
|
||||
}
|
||||
if ($bill->id == $journal->bill_id) {
|
||||
if ($bill->id === $journal->bill_id) {
|
||||
// if no match, but bill used to match, remove it:
|
||||
$journal->bill_id = null;
|
||||
$journal->save();
|
||||
|
Reference in New Issue
Block a user