Show
Ignore:
Timestamp:
12/15/05 19:09:02 (6 years ago)
Author:
john
Message:

fix flash syntax in Session

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/session.php

    r96 r101  
    119119    function isset_var($key) { 
    120120        if(self::is_valid_host()) { 
    121             return isset($_SESSION[self::get_hash()][$key]); 
     121            if($_SESSION[self::get_hash()][$key]) { 
     122                return true;     
     123            } 
    122124        } 
     125        return false; 
    123126    } 
    124127 
    125128    function isset_flash($key) { 
    126129        if(self::is_valid_host()) { 
    127             isset($_SESSION[self::get_hash()]['flash'][$key]); 
     130            if($_SESSION[self::get_hash()]['flash'][$key]) { 
     131                return true;     
     132            } 
    128133        } 
     134        return false; 
    129135    } 
    130136 
    131     function flash($key, $value) { 
     137    function flash($key, $value = null) { 
    132138        if(self::is_valid_host()) { 
    133139            if($value) {