From 8d2d68b65cfaca5e7fc4e47851fd27a3e057a5ee Mon Sep 17 00:00:00 2001 From: "vee w," Date: Mon, 25 Aug 2014 17:19:52 +0700 Subject: [PATCH] fix unserialize error on get cookie data --- fuel/app/classes/model/accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuel/app/classes/model/accounts.php b/fuel/app/classes/model/accounts.php index 6e86d31..d009398 100644 --- a/fuel/app/classes/model/accounts.php +++ b/fuel/app/classes/model/accounts.php @@ -776,7 +776,7 @@ public function getAccountCookie($level = 'member') if ($cookie_account != null) { $cookie_account = \Crypt::decode($cookie_account); - $cookie_account = unserialize($cookie_account); + $cookie_account = @unserialize($cookie_account);// there is no way to check is serialize or unserializable so i have to suppress error. } return $cookie_account;