Skip to content

Commit cdd9f0b

Browse files
committed
FIX: hasCategory() method
1 parent 36053ec commit cdd9f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Post/PostsHaveACategory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function hasCategory($category)
1717
return false;
1818
}
1919

20-
return $category_id == $this->category->id;
20+
return $category == $this->category->id;
2121
}
2222

2323
public function hasAnyCategory($categories)

0 commit comments

Comments
 (0)