Fix strict standard warning in user template

@DeepDiver1975 @tanghus @karlitschek