Get error when delete DNS record

When I try to delete some DNS record in my domain (not only one domain), I receive the error of
and i found out that even the record and IP or Value is empty the record still able to save

Replace line 35 $v_username with $user