summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
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();