Attached patch removes extra quatation mark and ensures that uninitialized variable is not used to avoid php warnings