summaryrefslogtreecommitdiff
path: root/app/Model/User.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-19 21:05:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-19 21:05:41 -0400
commit7303a79b503dde63c627675ce4155f96c4e4dbd3 (patch)
tree91f2d7bcfc228bc5218ff8e2db2d7b9a2c19475c /app/Model/User.php
parent43cffe282868ff5c32804c34b31baaa1317f5a8e (diff)
Cleanup and minor fixes
Diffstat (limited to 'app/Model/User.php')
-rw-r--r--app/Model/User.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Model/User.php b/app/Model/User.php
index c4d26c9c..6e7e94e0 100644
--- a/app/Model/User.php
+++ b/app/Model/User.php
@@ -2,6 +2,7 @@
namespace Kanboard\Model;
+use PicoDb\Database;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
use Kanboard\Core\Session;
@@ -335,7 +336,7 @@ class User extends Base
*/
public function remove($user_id)
{
- return $this->db->transaction(function ($db) use ($user_id) {
+ return $this->db->transaction(function (Database $db) use ($user_id) {
// All assigned tasks are now unassigned (no foreign key)
if (! $db->table(Task::TABLE)->eq('owner_id', $user_id)->update(array('owner_id' => 0))) {