mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
Strict comparisons.
This commit is contained in:
@@ -62,7 +62,7 @@ class Bill extends Model
|
||||
public static function routeBinder(Bill $value)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
if ($value->user_id == auth()->user()->id) {
|
||||
if ($value->user_id === auth()->user()->id) {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class Bill extends Model
|
||||
public function getMatchAttribute($value)
|
||||
{
|
||||
|
||||
if (intval($this->match_encrypted) == 1) {
|
||||
if (intval($this->match_encrypted) === 1) {
|
||||
return Crypt::decrypt($value);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class Bill extends Model
|
||||
public function getNameAttribute($value)
|
||||
{
|
||||
|
||||
if (intval($this->name_encrypted) == 1) {
|
||||
if (intval($this->name_encrypted) === 1) {
|
||||
return Crypt::decrypt($value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user