Ho trovato il problema.

questo isset non riesce ad arginare il problema della defizxione dell'array.

Codice PHP:
if(isset($_POST['action']) and $_POST['action'] == 'Invia'){
    
$ret reg_check_data($_POST);
    
$status = ($ret === true) ? reg_register($_POST) : REG_ERRORS 
Come posso fixarlo?
E se cancellassi "and $_POST['action']"?