summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectCreation.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-08 18:24:15 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-08 18:24:15 -0500
commitac2bf9d553abf17ca9f24cb5dcbfc011d4486215 (patch)
treeb0c7faa1cb5956840bd44c0624a44b91c8a781b2 /app/Controller/ProjectCreation.php
parent03e459fca79beeda8f94630de63ae4e37bbcf6b6 (diff)
Fix PHP notices during creation of first project and in subtasks table
Diffstat (limited to 'app/Controller/ProjectCreation.php')
-rw-r--r--app/Controller/ProjectCreation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/ProjectCreation.php b/app/Controller/ProjectCreation.php
index 61ea2586..88f41fcd 100644
--- a/app/Controller/ProjectCreation.php
+++ b/app/Controller/ProjectCreation.php
@@ -73,7 +73,7 @@ class ProjectCreation extends Base
*/
private function createOrDuplicate(array $values)
{
- if ($values['src_project_id'] == 0) {
+ if (empty($values['src_project_id'])) {
return $this->createNewProject($values);
}