librenms/librenms — pull request #32 by laf (2013-12-05 11:54:28+00:00)
Title: $subformat was being set rather than checked in if statement

Line 266, changed = to == so the if statement works.