- XHTML errors/warnings fixed in some pages
[shipsimu.git] / application / ship-simu / main / personell / company / class_CompanyEmployee.php
index 3aee0897c630ce56f5785cade62cd8db63d0ed58..fde89e022c994143e2713302fe35a69a8a51c8c4 100644 (file)
@@ -47,10 +47,10 @@ class CompanyEmployee extends SimulatorPersonell {
                }
 
                // Ist the given birthday valid?
-               if (!$personellInstance->isDateValid($year, $month, $day)) {
+               if ($personellInstance->isDateValid($year, $month, $day) === false) {
                        // Something is wrong ...
                        throw new BirthdayInvalidException(array($year, $month, $day), self::EXCEPTION_BIRTH_DATE_IS_INVALID);
-               }
+               } // END - if
 
                // Set birthday
                $personellInstance->setBirthday($year, $month, $day);