Changeset 2486

Show
Ignore:
Timestamp:
09/14/06 05:30:29
Author:
demian
Message:

fixed session notice

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.6-bugfix/lib/SGL/Session.php

    r2485 r2486  
    427427    function get($sessVarName) 
    428428    { 
    429         if (isset($sessVarName)) { 
     429        if (isset($sessVarName) && isset($_SESSION)) { 
    430430            return is_array($_SESSION) 
    431431                ? (array_key_exists($sessVarName, $_SESSION) ? $_SESSION[$sessVarName] : '') 
    432432                : ''; 
     433        } else { 
     434            return null; 
    433435        } 
    434436    }