Fix notice when $_POST['primary'] isn't set