Minor fixes

This commit is contained in:
Frederic Guillot
2016-06-05 18:22:19 -04:00
parent 9ce6a28419
commit 5ffdf286e7
5 changed files with 15 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ class LastLoginModel extends Base
if (count($connections) >= self::NB_LOGINS) {
$this->db->table(self::TABLE)
->eq('user_id', $user_id)
->notin('id', array_slice($connections, 0, self::NB_LOGINS - 1))
->notIn('id', array_slice($connections, 0, self::NB_LOGINS - 1))
->remove();
}
}