if (!empty($credit_hours) && !is_numeric($credit_hours))
{
return 'Invalid credit-hour specification of <tt>' . htmlentities($credit_hours) . '</tt> for ' . htmlentities($course_name) . '-' . htmlentities($letter) . '. Please use a floating point number or do not enter anything if the number of credit hours is not known.';
}
foreach ($this->courses as $course)
if (!strcmp($course_name, $course->getName()))
{
$section = $course->section_get($letter);
if (!$section)
{
$section = new Section($letter, array(), $synonym);
$section = new Section($letter, array(), $synonym, $credit_hours);