Error 500

Undefined variable $key2