Issue #1247620 by wojtha, idflood: Fixed various undefind variables which cause minor bugs and PHP notices.