Show
Ignore:
Timestamp:
11/07/2007 05:36:53 PM (13 months ago)
Author:
Shadowhand
Message:

Fixed View::get()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r1015 r1016  
    7676         * 
    7777         * Parameters: 
    78          *  name  - variable name 
     78         *  key   - variable name 
    7979         *  value - variable contents 
    8080         */ 
    81         public function __set($name, $value) 
     81        public function __set($key, $value) 
    8282        { 
    83                 if ( ! isset($this->$name)) 
     83                if ( ! isset($this->$key)) 
    8484                { 
    85                         $this->data[$name] = $value; 
     85                        $this->data[$key] = $value; 
    8686                } 
    8787        } 
     
    9292         * 
    9393         * Parameters: 
    94          *  name - variable name 
     94         *  key - variable name 
    9595         *  
    9696         * Returns: 
    9797         *  The variable contents or NULL if the variable does not exist 
    9898         */ 
    99         public function __get($name) 
     99        public function __get($key) 
    100100        { 
    101                 return isset($this->data[$name]) ? $this->data[$name] : NULL; 
     101                if (isset($this->data[$key])) 
     102                { 
     103                        return $this->data[$key]; 
     104                } 
    102105        } 
    103106