Fix syntax error in core.pp bug #1205007 move quantum_log class from if statement