diff options
Diffstat (limited to 'app/Model/Category.php')
-rw-r--r-- | app/Model/Category.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/Category.php b/app/Model/Category.php index 9f93e7be..dcc0f88e 100644 --- a/app/Model/Category.php +++ b/app/Model/Category.php @@ -30,7 +30,7 @@ class Category extends Base */ public function exists($category_id, $project_id) { - return $this->db->table(self::TABLE)->eq('id', $category_id)->eq('project_id', $project_id)->count() > 0; + return $this->db->table(self::TABLE)->eq('id', $category_id)->eq('project_id', $project_id)->exists(); } /** |