Fix PHP undefined variable errors
Turn off JKL Attribution link if requested - still some PHP errors in Debug