Update template.php

See:
http://forums.cacti.net/viewtopic.php?p=242263#p242263