Fixed undefined property in news class found by @neozonz

This commit is contained in:
xisi 2014-01-18 23:50:24 -05:00
parent 97835f33ca
commit 1993ff604f
2 changed files with 2 additions and 0 deletions

View File

@ -102,4 +102,5 @@ $news = new News();
$news->setDebug($debug);
$news->setMysql($mysqli);
$news->setUser($user);
$news->setErrorCodes($aErrorCodes);
?>

View File

@ -36,6 +36,7 @@ class Token Extends Base {
* @param account_id int Account id of user
* @param token string Token to check
* @param type int Type of token
* @param checkTimeExplicitly Check the token time for expiration; can cause issues w/ timezone & sync
* @return int 0 or 1
*/
public function isTokenValid($account_id, $token, $type, $checkTimeExplicitly=false) {