mirror of
				https://github.com/Mibew/handlebars.php.git
				synced 2025-11-04 12:05:09 +03:00 
			
		
		
		
	allow accessing stuff via 0 index, fixes #30
This commit is contained in:
		
							parent
							
								
									062df637e9
								
							
						
					
					
						commit
						54ab05444e
					
				@ -229,7 +229,7 @@ class Handlebars_Context
 | 
			
		||||
    private function _findVariableInContext($variable, $inside, $strict = false)
 | 
			
		||||
    {
 | 
			
		||||
        $value = '';
 | 
			
		||||
        if ( empty( $inside ) || ( $inside == 'this' ) ) {
 | 
			
		||||
        if (($inside !== '0' && empty($inside)) || ($inside == 'this')) {
 | 
			
		||||
            return $variable;
 | 
			
		||||
        } elseif (is_array($variable)) {
 | 
			
		||||
            if (isset($variable[$inside])) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user