mpd_copy_file_to_destination calls $info['extension'] twice without checking isset($info['extension']), resulting in errors when this is not set.