mod: uncommented line as it cant be reached
mod: uninitialized variables in  replaced by getUrlParam();