summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2015-01-02 21:48:26 -0500
committerFrédéric Guillot <fred@kanboard.net>2015-01-02 21:48:26 -0500
commit0ebdd4ddfd898628cc30e34e55e97f88e5e30a71 (patch)
tree4038cd9ad1ad440b033d221b4ffd637ec03a538d /app/Model
parent45c95d74fc2115fe4cc7214553c0927d3ce9df8d (diff)
Cleanup and fixes
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Authentication.php4
-rw-r--r--app/Model/Project.php2
2 files changed, 2 insertions, 4 deletions
diff --git a/app/Model/Authentication.php b/app/Model/Authentication.php
index f917bff4..92898cd5 100644
--- a/app/Model/Authentication.php
+++ b/app/Model/Authentication.php
@@ -35,11 +35,9 @@ class Authentication extends Base
* Check if the current user is authenticated
*
* @access public
- * @param string $controller Controller
- * @param string $action Action name
* @return bool
*/
- public function isAuthenticated($controller, $action)
+ public function isAuthenticated()
{
// If the user is already logged it's ok
if ($this->userSession->isLogged()) {
diff --git a/app/Model/Project.php b/app/Model/Project.php
index 6d8885b1..f9c5c39c 100644
--- a/app/Model/Project.php
+++ b/app/Model/Project.php
@@ -228,7 +228,7 @@ class Project extends Base
);
if (! $this->db->table(self::TABLE)->save($values)) {
- return false;
+ return 0;
}
return $this->db->getConnection()->getLastId();