Undefined index when guests posting is on

Signed-off-by: emanuele <emanuele45@gmail.com>