XaminProject / handlebars.php

Handlebars processor for php
331 stars 132 forks source link

Update Context.php #38

Closed ulriklystbaek closed 10 years ago

ulriklystbaek commented 10 years ago

If the array contains the given key with a null value, the null value should be returned instead of an empty string.

ulriklystbaek commented 10 years ago

The reason why I have left the isset is to speed up the code. Isset is said to be faster than array_key_exists, so avoid array_key_exists if possible:

http://stackoverflow.com/questions/9695472/is-isset-array-key-exists-a-faster-way-of-detecting-null-values-th

everplays commented 10 years ago

sounds good, but please add your name to authors at the top of the file that you changed.