Closed LouisJohnson closed 10 years ago
HandleBars_Context#247 uses empty($inside) which returns true for the string "0"
thus preventing use of tags such as "array.0.name"
suggestion: if (($inside !== "0" && empty( $inside )) || ( $inside == 'this' ) ) {
thanks @LouisJohnson, I used your snippet and it's now fixed in both master and php-52 branches.
master
php-52
HandleBars_Context#247 uses empty($inside) which returns true for the string "0"
thus preventing use of tags such as "array.0.name"
suggestion: if (($inside !== "0" && empty( $inside )) || ( $inside == 'this' ) ) {