[eluser]TheFuzzy0ne[/eluser]
You can't use the return value of a function with empty() the way you are, you'd need to do it like this:
Code:
$this->feedback_pos = $this->session->userdata('feedback_pos');
$this->feedback_pos = ( ! $this->feedback_pos) ? array() : unserialize($this->session->userdata('feedback_pos'));
However, since the session class returns FALSE if the key doesn't exist, you might as well just do this:
Code:
$this->feedback_pos = ( ! $this->session->userdata('feedback_pos') ? array() : unserialize($this->session->userdata('feedback_pos'));
Hope this helps.