mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Strict comparisons.
This commit is contained in:
@@ -67,7 +67,7 @@ class Category extends Model
|
||||
$set = $query->get(['categories.*']);
|
||||
/** @var Category $category */
|
||||
foreach ($set as $category) {
|
||||
if ($category->name == $fields['name']) {
|
||||
if ($category->name === $fields['name']) {
|
||||
return $category;
|
||||
}
|
||||
}
|
||||
@@ -86,7 +86,7 @@ class Category extends Model
|
||||
public static function routeBinder(Category $value)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
if ($value->user_id == auth()->user()->id) {
|
||||
if ($value->user_id === auth()->user()->id) {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user