[eluser]Pascal Kriete[/eluser]
Weird, that should work. Well, it might be worth a try, in PHP 4 you would have to do this:
Code:
class Auth {
function __construct() {
log_message('debug', 'Authorization class initialized.');
}
function logged_in() {
//Get CI Object
$CI =& get_instance();
// Checks if the user is logged in.
if ($CI->session->userdata('user_id')) {
return TRUE;
} else {
return FALSE;
}
}
}