Uprava chyby "notice: Undefined index"
Dodani kontrol empty, isset.