diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-27 00:00:43 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-27 00:00:43 -0400 |
commit | 1823430d13508fec5de39264bb4fe1224716def2 (patch) | |
tree | f911a412f1b8be2471bcb66c7fed8adf675c8d4a /app/Model/Category.php | |
parent | 7a22f4c6d47a3e5d447ebeeef094092a4a4b0ad2 (diff) |
PicoDb update
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(); } /** |