diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 19:43:59 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 19:43:59 -0500 |
commit | 0a14c8d5e5538e487dd6b012771f72aea6f4d5a6 (patch) | |
tree | 37518ee92a95fa9aa61eb46daa9a2b0b82edc8c4 /app/Model/ProjectPermission.php | |
parent | 1522be603b4508b03b8fa79a6a3fbfeb90ffece6 (diff) |
Fix some PHPAnalyzer issues
Diffstat (limited to 'app/Model/ProjectPermission.php')
-rw-r--r-- | app/Model/ProjectPermission.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/ProjectPermission.php b/app/Model/ProjectPermission.php index aaff5e69..3b42751a 100644 --- a/app/Model/ProjectPermission.php +++ b/app/Model/ProjectPermission.php @@ -157,7 +157,7 @@ class ProjectPermission extends Base * @access public * @param integer $project_id Project id * @param integer $user_id User id - * @param bool $is_owner Is user owner of the project + * @param integer $is_owner Is user owner of the project * @return bool */ public function setOwner($project_id, $user_id, $is_owner = 1) @@ -165,7 +165,7 @@ class ProjectPermission extends Base return $this->db ->table(self::TABLE) ->eq('project_id', $project_id) - ->eq('user_id', $user_id) + ->eq('user_id', $user_id) ->update(array('is_owner' => $is_owner)); } |