QR code generation edits

Statement rewritten from Smarty to clear PHP