Minor code improvements

This commit is contained in:
Frédéric Guillot
2014-05-23 10:14:25 -04:00
parent 7b53d47d46
commit db76bcb593
7 changed files with 12 additions and 17 deletions

View File

@@ -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) {

View File

@@ -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
*/

View File

@@ -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());