summaryrefslogtreecommitdiff
path: root/app/Controller/Project.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-24 16:47:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-24 16:47:41 -0400
commit1a0465cb57818fd302da8bd7a27b9a78415d1804 (patch)
treebc56dd3ded941267fe034374283f893438ba74f7 /app/Controller/Project.php
parent03fc8a1bce033cc8334f588f3c95baffa1291b54 (diff)
Fix PhpAnalyzer issues
Diffstat (limited to 'app/Controller/Project.php')
-rw-r--r--app/Controller/Project.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index f0847ef2..52c2b870 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -323,7 +323,7 @@ class Project extends Base
if ($this->request->getStringParam('duplicate') === 'yes') {
$values = array_keys($this->request->getValues());
- if ($this->projectDuplication->duplicate($project['id'], $values)) {
+ if ($this->projectDuplication->duplicate($project['id'], $values) !== false) {
$this->session->flash(t('Project cloned successfully.'));
} else {
$this->session->flashError(t('Unable to clone this project.'));