[core:smartyplugin] correction for PHP < 5.2.3