Fixes #902 Smilies Improvements

Fix PHP error...