Changeset 2747 for trunk/modules/auth

Show
Ignore:
Timestamp:
06/05/2008 01:31:27 PM (6 months ago)
Author:
Shadowhand
Message:

Fixing a bug in Auth_ORM that could prevent logged_in() from working properly, due to r2681

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/auth/libraries/drivers/Auth/ORM.php

    r2482 r2747  
    3737                // Checks if a user is logged in and valid 
    3838                if ( ! empty($_SESSION['auth_user']) AND is_object($_SESSION['auth_user']) 
    39                         AND ($_SESSION['auth_user'] instanceof User_Model) AND $_SESSION['auth_user']->loaded()) 
     39                        AND ($_SESSION['auth_user'] instanceof User_Model) AND $_SESSION['auth_user']->id > 0) 
    4040                { 
    4141                        // Everything is okay so far