Fix another instance of the same mistake

Srsly, how?

This was not discovered until now because (1) apparently nobody used it, and (2) Smarty2 turned off warnings during template execution.
Merge branch 'master' into smarty3