diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-23 10:14:25 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-23 10:14:25 -0400 |
commit | db76bcb593e34948dab2709bcb7b6c1139a37c72 (patch) | |
tree | 99b3ee870b2e6225910799d81f3a6f51b19c13f3 /app/Controller | |
parent | 7b53d47d467115a173c642526a7d2474a22f88fb (diff) |
Minor code improvements
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Action.php | 2 | ||||
-rw-r--r-- | app/Controller/Base.php | 4 | ||||
-rw-r--r-- | app/Controller/Board.php | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/app/Controller/Action.php b/app/Controller/Action.php index b32a8906..2aa85c14 100644 --- a/app/Controller/Action.php +++ b/app/Controller/Action.php @@ -91,7 +91,7 @@ class Action extends Base $values = $this->request->getValues(); - list($valid, $errors) = $this->action->validateCreation($values); + list($valid,) = $this->action->validateCreation($values); if ($valid) { diff --git a/app/Controller/Base.php b/app/Controller/Base.php index f8e7914b..b21d9b8f 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -19,10 +19,10 @@ use Model\LastLogin; * @property \Model\Config $config * @property \Model\File $file * @property \Model\Google $google - * @property \Model\LastLogin $lastlogin + * @property \Model\LastLogin $lastLogin * @property \Model\Ldap $ldap * @property \Model\Project $project - * @property \Model\RememberMe $rememberme + * @property \Model\RememberMe $rememberMe * @property \Model\Task $task * @property \Model\User $user */ diff --git a/app/Controller/Board.php b/app/Controller/Board.php index 4cf0d381..53fdeab9 100644 --- a/app/Controller/Board.php +++ b/app/Controller/Board.php @@ -144,6 +144,8 @@ class Board extends Base public function index() { $projects = $this->project->getListByStatus(ProjectModel::ACTIVE); + $project_id = 0; + $project_name = ''; if ($this->acl->isRegularUser()) { $projects = $this->project->filterListByAccess($projects, $this->acl->getUserId()); |