diff options
Diffstat (limited to 'app/Controller/CategoryController.php')
-rw-r--r-- | app/Controller/CategoryController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/CategoryController.php b/app/Controller/CategoryController.php index fd1b3f94..dd6e1c35 100644 --- a/app/Controller/CategoryController.php +++ b/app/Controller/CategoryController.php @@ -64,7 +64,7 @@ class CategoryController extends BaseController list($valid, $errors) = $this->categoryValidator->validateCreation($values); if ($valid) { - if ($this->categoryModel->create($values)) { + if ($this->categoryModel->create($values) !== false) { $this->flash->success(t('Your category have been created successfully.')); return $this->response->redirect($this->helper->url->to('CategoryController', 'index', array('project_id' => $project['id']))); } else { |