diff --git a/application/models/Token.php b/application/models/Token.php index 3bd7fe62877..0e2856a646d 100644 --- a/application/models/Token.php +++ b/application/models/Token.php @@ -86,7 +86,7 @@ public function generateToken() $this->token = randomChars($length); $counter = 0; - while (!$this->validate('token')) + while (!$this->validate(array('token'))) { $this->token = randomChars($length); $counter++;