855868e24162d07f615280271eac04e6e6a95052

Author: AD7six

Date: 2009-04-15 21:40:27 +0200

ensuring the cookie component is initialized before using it

diff --git a/plugins/users/controllers/components/bakery.php b/plugins/users/controllers/components/bakery.php index e4720f1..4081ec0 100644 --- a/plugins/users/controllers/components/bakery.php +++ b/plugins/users/controllers/components/bakery.php @@ -81,6 +81,7 @@ class BakeryComponent extends Object { * @access protected */ function _cookieAuth(&$controller) { + $this->Cookie->initialize($controller); $cookie = $this->Cookie->read('User'); if (!empty($cookie['id']) && !empty($cookie['token'])) {