X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=project_edit.php;h=e1792e48cc0b428912e739b8028c0a22218ff1db;hb=691958794018beda9788e9bdb47d640a116af492;hp=a2b27925e21848a792ad5046aca9a8e41a40a9f6;hpb=5d4953bb5ec09e6e79a114c71f53f410c6064f2e;p=timetracker.git diff --git a/project_edit.php b/project_edit.php index a2b27925..e1792e48 100644 --- a/project_edit.php +++ b/project_edit.php @@ -94,18 +94,18 @@ if ($request->isPost()) { if ($request->getParameter('btn_save')) { $existing_project = ttProjectHelper::getProjectByName($cl_name); if (!$existing_project || ($cl_project_id == $existing_project['id'])) { - // Update project information. - if (ttProjectHelper::update(array( - 'id' => $cl_project_id, - 'name' => $cl_name, - 'description' => $cl_description, - 'status' => $cl_status, - 'users' => $cl_users, - 'tasks' => $cl_tasks))) { - header('Location: projects.php'); - exit(); + // Update project information. + if (ttProjectHelper::update(array( + 'id' => $cl_project_id, + 'name' => $cl_name, + 'description' => $cl_description, + 'status' => $cl_status, + 'users' => $cl_users, + 'tasks' => $cl_tasks))) { + header('Location: projects.php'); + exit(); } else - $err->add($i18n->get('error.db')); + $err->add($i18n->get('error.db')); } else $err->add($i18n->get('error.object_exists')); }