From acbe0e4cd2c3b839a5f6f499eea059977976cdba Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 12 May 2012 16:52:24 +0200 Subject: fix missing object initialization and properly declare class variables var is deprecated since ages and in strict mode we have to initialize $this->var as a generic object before using it. Signed-off-by: Florian Pritz --- application/controllers/user.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application/controllers/user.php') diff --git a/application/controllers/user.php b/application/controllers/user.php index 204612b2d..af908a63d 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -2,9 +2,15 @@ class User extends CI_Controller { + public $data = array(); + public $var; + function __construct() { parent::__construct(); + + $this->var = new StdClass(); + $this->load->library('migration'); if ( ! $this->migration->current()) { show_error($this->migration->error_string()); -- cgit v1.2.3-24-g4f1b