Update Delete.php

fix get_affected function