From 1993ff604f9bccb1800b40e9294db6e4ebfca7ad Mon Sep 17 00:00:00 2001 From: xisi Date: Sat, 18 Jan 2014 23:50:24 -0500 Subject: [PATCH] Fixed undefined property in news class found by @neozonz --- public/include/classes/news.class.php | 1 + public/include/classes/token.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/public/include/classes/news.class.php b/public/include/classes/news.class.php index f83e4253..f71ab7d8 100644 --- a/public/include/classes/news.class.php +++ b/public/include/classes/news.class.php @@ -102,4 +102,5 @@ $news = new News(); $news->setDebug($debug); $news->setMysql($mysqli); $news->setUser($user); +$news->setErrorCodes($aErrorCodes); ?> diff --git a/public/include/classes/token.class.php b/public/include/classes/token.class.php index 39be5bce..4bcfc033 100644 --- a/public/include/classes/token.class.php +++ b/public/include/classes/token.class.php @@ -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) {