fixed a variable name (and php warning)
Merge pull request #41 from wluo/php-warnings

fixed a variable name (and php warning)