Update exercise.class.php

correction bug 7171