This commit is contained in:
xisi 2014-01-17 19:28:18 -05:00
parent 18f808a85b
commit 4be9330ca1

View File

@ -39,7 +39,7 @@ class Token Extends Base {
* @return int 0 or 1
*/
public function isTokenValid($account_id, $token, $type) {
if (!is_int($account_id) && !is_int($type)) {
if (!is_int($account_id) || !is_int($type)) {
$this->setErrorMessage("Invalid token");
return 0;
}